class Temple::MutableHash

Mutable hash class which supports hash merging @api public

Public Class Methods

new(*hash) click to toggle source
Calls superclass method Temple::ImmutableHash.new
# File lib/temple/hash.rb, line 42
def initialize(*hash)
  super({}, *hash)
end

Public Instance Methods

[]=(key, value) click to toggle source
# File lib/temple/hash.rb, line 46
def []=(key, value)
  @hash.first[key] = value
end
update(hash) click to toggle source
# File lib/temple/hash.rb, line 50
def update(hash)
  @hash.first.update(hash)
end