D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby26
/
lib64
/
ruby
/
gems
/
2.6.0
/
doc
/
rack-3.0.8
/
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"LTakes a block or argument that is an object that responds to #call and ;TI"returns a Rack response.;To:RDoc::Markup::BlankLine o; ; [I"You can use a block:;T@o:RDoc::Markup::Verbatim; [I"run do |env| ;TI"C [200, { "content-type" => "text/plain" }, ["Hello World!"]] ;TI" end ;T:@format0o; ; [I"#You can also provide a lambda:;T@o;; [I"Lrun lambda { |env| [200, { "content-type" => "text/plain" }, ["OK"]] } ;T; 0o; ; [I"+You can also provide a class instance:;T@o;; [I"class Heartbeat ;TI" def call(env) ;TI": [200, { "content-type" => "text/plain" }, ["OK"]] ;TI" end ;TI" end ;TI" ;TI"run Heartbeat.new;T; 0: @fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(app = nil, &block);T@*FI"Builder;TcRDoc::NormalClass00