Class: Temple::MutableMap
- Inherits:
-
ImmutableMap
- Object
- ImmutableMap
- Temple::MutableMap
- Defined in:
- lib/temple/map.rb
Overview
Mutable map class which supports map merging
Direct Known Subclasses
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(*map) ⇒ MutableMap
constructor
A new instance of MutableMap.
- #update(map) ⇒ Object
Methods inherited from ImmutableMap
#[], #each, #include?, #keys, #to_hash, #values
Constructor Details
#initialize(*map) ⇒ MutableMap
Returns a new instance of MutableMap.
43 44 45 |
# File 'lib/temple/map.rb', line 43 def initialize(*map) super({}, *map) end |