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 :
map-i.ri
back
Copy
U:RDoc::AnyMethod[iI"map:EFI"Rack::Builder#map;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I",Creates a route within the application.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"Rack::Builder.app do ;TI" map '/' do ;TI" run Heartbeat ;TI" end ;TI" end ;T:@format0o; ; [I"_The +use+ method can also be used here to specify middleware to run under a specific path:;T@o;; [I"Rack::Builder.app do ;TI" map '/' do ;TI" use Middleware ;TI" run Heartbeat ;TI" end ;TI" end ;T; 0o; ; [I"`This example includes a piece of middleware which will run before requests hit +Heartbeat+.;T: @fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(path, &block);T@$FI"Builder;FcRDoc::NormalClass0