Module: AngryHash::Initialiser

Included in:
AngryHash
Defined in:
lib/angry_hash/initialiser.rb

Instance Method Summary collapse

Instance Method Details

#[](other = nil) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/angry_hash/initialiser.rb', line 3

def [](other=nil)
  if other
    super(__convert(other))
  else
    new
  end
end