AlkantarClanX12
Current Path : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/ |
Current File : //opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/run-i.ri |
U:RDoc::AnyMethod[iI"run:EFI"Rack::Builder#run;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"\Takes an argument that is an object that responds to #call and returns a Rack response.;FI"2The simplest form of this is a lambda object:;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Lrun lambda { |env| [200, { "Content-Type" => "text/plain" }, ["OK"]] } ;Fo; ; [I"(However this could also be a class:;F@o;; [I"class Heartbeat ;FI" def self.call(env) ;FI": [200, { "Content-Type" => "text/plain" }, ["OK"]] ;FI" end ;FI" end ;FI" ;FI"run Heartbeat;F: @file000[ I" (app);FI"lib/rack/builder.rb;F