Method: Jimmy::Json::Hash#initialize

Defined in:
lib/jimmy/json/hash.rb

#initialize(hash = {}) ⇒ Hash

Returns a new instance of Hash.

Parameters:

  • hash (Hash, ::Hash) (defaults to: {})

    Items to be merged into the new hash.



13
14
15
16
17
# File 'lib/jimmy/json/hash.rb', line 13

def initialize(hash = {})
  super()
  @members = {}
  merge! hash
end