Method: Hashie::Mash#initialize

Defined in:
lib/pancake/vendor/hashie/lib/hashie/mash.rb

#initialize(source_hash = nil, default = nil, &blk) ⇒ Mash

If you pass in an existing hash, it will convert it to a Mash including recursively descending into arrays and hashes, converting them as well.



51
52
53
54
# File 'lib/pancake/vendor/hashie/lib/hashie/mash.rb', line 51

def initialize(source_hash = nil, default = nil, &blk)
  deep_update(source_hash) if source_hash
  default ? super(default) : super(&blk)
end