Class: Rack::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/mojito/request_extensions.rb

Instance Method Summary collapse

Instance Method Details

#capturesObject



9
10
11
# File 'lib/mojito/request_extensions.rb', line 9

def captures
	@env['mojito/captures'] ||= []
end

#context_pathObject



17
18
19
# File 'lib/mojito/request_extensions.rb', line 17

def context_path
	@env['MOJITO/CONTEXT_PATH']
end

#dupObject



5
6
7
# File 'lib/mojito/request_extensions.rb', line 5

def dup
	Rack::Request.new(@env.dup)
end

#localsObject



13
14
15
# File 'lib/mojito/request_extensions.rb', line 13

def locals
	@env['mojito/locals'] ||= Mash.new
end

#path_infoObject



25
26
27
# File 'lib/mojito/request_extensions.rb', line 25

def path_info
	@env['PATH_INFO']
end

#script_nameObject



21
22
23
# File 'lib/mojito/request_extensions.rb', line 21

def script_name
	@env['SCRIPT_NAME']
end