Method: JsonObject::JsonOpenStruct.create

Defined in:
lib/json_object.rb

.create(hash, parent = nil) ⇒ Object

Making sure we set our json_* attributes otherwise



61
62
63
64
65
66
# File 'lib/json_object.rb', line 61

def self.create hash, parent=nil
  new(hash).tap do |obj|
    obj.parent = parent
    obj.json_hash = hash
  end
end