Class: Mutability::MutableHash

Inherits:
Mutable
  • Object
show all
Defined in:
lib/mutability/mutable_hash.rb

Instance Attribute Summary

Attributes inherited from Mutable

#original, #self

Instance Method Summary collapse

Methods inherited from Mutable

#freeze!, #revert!

Constructor Details

#initialize(hash = {}) ⇒ MutableHash

Returns a new instance of MutableHash.



5
6
7
# File 'lib/mutability/mutable_hash.rb', line 5

def initialize(hash = {})
  super hash
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mutability::Mutable