Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium163.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : infihsqw ( 644)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Builder/map-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a route within the application.
- !ruby/struct:SM::Flow::VERB 
  body: "  Rack::Builder.app do\n    map '/' do\n      run Heartbeat\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "The <tt>use</tt> method can also be used here to specify middleware to run under a specific path:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Rack::Builder.app do\n    map '/' do\n      use Middleware\n      run Heartbeat\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: This example includes a piece of middleware which will run before requests hit <tt>Heartbeat</tt>.
full_name: Rack::Builder#map
is_singleton: false
name: map
params: (path, &block)
visibility: public

ZeroDay Forums Mini