Class: ArrayHash

Inherits:
Hash
  • Object
show all
Defined in:
app/lib/lib.rb,
app/lib/array_hash.rb

Overview

a hash which keys are initiated as arrays default values via Hash.new [] are inadequate for being volatile

Instance Method Summary collapse

Methods inherited from Hash

#<<

Instance Method Details

#[](key) ⇒ Object



44
45
46
47
# File 'app/lib/lib.rb', line 44

def [] key
  store key, [] unless has_key? key
  super
end