Class: Rack::Request
- Inherits:
-
Object
- Object
- Rack::Request
- Defined in:
- lib/mojito/request_extensions.rb
Instance Method Summary collapse
- #captures ⇒ Object
- #context_path ⇒ Object
- #dup ⇒ Object
- #locals ⇒ Object
- #path_info ⇒ Object
- #script_name ⇒ Object
Instance Method Details
#captures ⇒ Object
9 10 11 |
# File 'lib/mojito/request_extensions.rb', line 9 def captures @env['mojito/captures'] ||= [] end |
#context_path ⇒ Object
17 18 19 |
# File 'lib/mojito/request_extensions.rb', line 17 def context_path @env['MOJITO/CONTEXT_PATH'] end |
#dup ⇒ Object
5 6 7 |
# File 'lib/mojito/request_extensions.rb', line 5 def dup Rack::Request.new(@env.dup) end |
#locals ⇒ Object
13 14 15 |
# File 'lib/mojito/request_extensions.rb', line 13 def locals @env['mojito/locals'] ||= Mash.new end |
#path_info ⇒ Object
25 26 27 |
# File 'lib/mojito/request_extensions.rb', line 25 def path_info @env['PATH_INFO'] end |
#script_name ⇒ Object
21 22 23 |
# File 'lib/mojito/request_extensions.rb', line 21 def script_name @env['SCRIPT_NAME'] end |