Mini Shell
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
Zerion Mini Shell 1.0