Class: Banacle::Config

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

Instance Method Summary collapse

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