Module: RubyPitaya::ConfigHashExtension

Defined in:
lib/rubypitaya/core/config_hash_extension.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
# File 'lib/rubypitaya/core/config_hash_extension.rb', line 4

def [](key)
  super(key.to_sym)
end

#dig(*args) ⇒ Object



13
14
15
# File 'lib/rubypitaya/core/config_hash_extension.rb', line 13

def dig(*args)
  super(*args.map(&:to_sym))
end

#fetch(*args) ⇒ Object



8
9
10
11
# File 'lib/rubypitaya/core/config_hash_extension.rb', line 8

def fetch(*args)
  args[0] = args[0].to_sym
  super(*args)
end

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/rubypitaya/core/config_hash_extension.rb', line 21

def has_key?(key)
  super(key.to_sym)
end

#key?(key) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rubypitaya/core/config_hash_extension.rb', line 17

def key?(key)
  super(key.to_sym)
end