Method: Gin::StrictHash#merge

Defined in:
lib/gin/strict_hash.rb

#merge(hash) ⇒ Object



21
22
23
24
25
26
# File 'lib/gin/strict_hash.rb', line 21

def merge hash
  return super if hash.class == self.class
  new_hash = self.dup
  new_hash.merge!(hash)
  new_hash
end