ok
Direktori : /proc/self/root/opt/alt/ruby22/lib64/ruby/gems/2.2.0/doc/rack-1.6.4/ri/Rack/Builder/ |
Current File : //proc/self/root/opt/alt/ruby22/lib64/ruby/gems/2.2.0/doc/rack-1.6.4/ri/Rack/Builder/run-i.ri |
U:RDoc::AnyMethod[iI"run:EFI"Rack::Builder#run;TF: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. ;TI"2The simplest form of this is a lambda object:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Lrun lambda { |env| [200, { "Content-Type" => "text/plain" }, ["OK"]] } ;T:@format0o; ; [I"(However this could also be a class:;T@o;; [I"class Heartbeat ;TI" def self.call(env) ;TI": [200, { "Content-Type" => "text/plain" }, ["OK"]] ;TI" end ;TI" end ;TI" ;TI"run Heartbeat;T; 0: @fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (app);T@FI"Builder;TcRDoc::NormalClass00