Class: MCollective::Util::IndifferentHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/mcollective/util/indifferent_hash.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
7
8
9
# File 'lib/mcollective/util/indifferent_hash.rb', line 4

def [](key)
  return super if key?(key)
  return self[key.to_s] if key.is_a?(Symbol)

  super
end