D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby20
/
lib64
/
ruby
/
gems
/
2.0.0
/
doc
/
rack-1.6.4
/
ri
/
Rack
/
Builder
/
Filename :
run-i.ri
back
Copy
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. ;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;FcRDoc::NormalClass0