diff options
author | Gibheer <gibheer@gmail.com> | 2012-11-13 21:29:59 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-11-13 21:29:59 +0100 |
commit | 960752a55c9704055e6f33f8ebcf42456f01d901 (patch) | |
tree | f37f94dfafb21419cc304bffda2e20b3755bcf0b | |
parent | ff46b368ed340642e3f29c7c8f95899209978406 (diff) |
add reader for environment
-rw-r--r-- | lib/zero/request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zero/request.rb b/lib/zero/request.rb index 00ef1bb..4a3289a 100644 --- a/lib/zero/request.rb +++ b/lib/zero/request.rb @@ -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 |