Class: Huyettings
- Inherits:
-
Object
- Object
- Huyettings
- Defined in:
- lib/huyettings.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#filepath ⇒ Object
readonly
Returns the value of attribute filepath.
Instance Method Summary collapse
-
#initialize(filepath, env) ⇒ Huyettings
constructor
A new instance of Huyettings.
- #method_missing(method, *_args) ⇒ Object
Constructor Details
#initialize(filepath, env) ⇒ Huyettings
Returns a new instance of Huyettings.
9 10 11 12 |
# File 'lib/huyettings.rb', line 9 def initialize(filepath, env) @filepath = filepath @env = env end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *_args) ⇒ Object
14 15 16 |
# File 'lib/huyettings.rb', line 14 def method_missing(method, *_args) env_settings[method.to_s] end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
7 8 9 |
# File 'lib/huyettings.rb', line 7 def env @env end |
#filepath ⇒ Object (readonly)
Returns the value of attribute filepath.
7 8 9 |
# File 'lib/huyettings.rb', line 7 def filepath @filepath end |