AlkantarClanX12
Current Path : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/ |
Current File : //opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/map-i.ri |
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.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"Rack::Builder.app do ;FI" map '/' do ;FI" run Heartbeat ;FI" end ;FI" end ;Fo; ; [I"_The +use+ method can also be used here to specify middleware to run under a specific path:;F@o;; [I"Rack::Builder.app do ;FI" map '/' do ;FI" use Middleware ;FI" run Heartbeat ;FI" end ;FI" end ;Fo; ; [I"`This example includes a piece of middleware which will run before requests hit +Heartbeat+.;F: @file000[ I"(path, &block);FI"lib/rack/builder.rb;F