Class: MethodedHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/ruby/extensions/methoded_hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(h = {}) ⇒ MethodedHash

Returns a new instance of MethodedHash.



3
4
5
6
# File 'lib/ruby/extensions/methoded_hash.rb', line 3

def initialize(h = {})
  duplicate_hash(h)
  self
end

Instance Method Details

#[]=(key, value) ⇒ Object



8
9
10
11
# File 'lib/ruby/extensions/methoded_hash.rb', line 8

def []=(key, value)
  common_methodizer(key)
  super
end