Class: MethodedHash
- Inherits:
-
Hash
- Object
- Hash
- MethodedHash
- Defined in:
- lib/ruby/extensions/methoded_hash.rb
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(h = {}) ⇒ MethodedHash
constructor
A new instance of MethodedHash.
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 |