D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
gems
/
doc
/
rack-2.2.10
/
ri
/
Rack
/
Builder
/
Filename :
run-i.ri
back
Copy
U:RDoc::AnyMethod[iI"run:ETI"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