0
0
Fork 0

add reader for environment

This commit is contained in:
Gibheer 2012-11-13 21:29:59 +01:00
parent ff46b368ed
commit 960752a55c
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ module Zero
@method = @env[CONST_REQUEST_METHOD].downcase.to_sym
end
# get the environment
# @return [Hash] the environment hash
attr_reader :env
# get the requested path
# @return [String] returns the requested path
def path