Class: Huyettings

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

Constant Summary collapse

VERSION =
'0.1.0'

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



7
8
9
# File 'lib/huyettings.rb', line 7

def env
  @env
end

#filepathObject (readonly)

Returns the value of attribute filepath.



7
8
9
# File 'lib/huyettings.rb', line 7

def filepath
  @filepath
end