Class: Banacle::Config
- Inherits:
-
Object
- Object
- Banacle::Config
- Defined in:
- lib/banacle/config.rb
Instance Method Summary collapse
- #[](k) ⇒ Object
- #dig(*args) ⇒ Object
- #fetch(*args) ⇒ Object
-
#initialize(hash) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(hash) ⇒ Config
Returns a new instance of Config.
3 4 5 |
# File 'lib/banacle/config.rb', line 3 def initialize(hash) @hash = hash end |
Instance Method Details
#[](k) ⇒ Object
7 8 9 |
# File 'lib/banacle/config.rb', line 7 def [](k) @hash[k] end |
#dig(*args) ⇒ Object
15 16 17 |
# File 'lib/banacle/config.rb', line 15 def dig(*args) @hash.dig(*args) end |
#fetch(*args) ⇒ Object
11 12 13 |
# File 'lib/banacle/config.rb', line 11 def fetch(*args) @hash.fetch(*args) end |