Class: Settings::Environment
- Inherits:
-
Object
- Object
- Settings::Environment
- Defined in:
- lib/teuton-get/settings.rb
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize(reader = nil) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(reader = nil) ⇒ Environment
Returns a new instance of Environment.
15 16 17 |
# File 'lib/teuton-get/settings.rb', line 15 def initialize(reader = nil) @env = ENV end |
Instance Method Details
#get(key) ⇒ Object
19 20 21 |
# File 'lib/teuton-get/settings.rb', line 19 def get(key) @env[key] end |