class Jsonerino::JsonObject

Attributes

value[R]

Public Class Methods

new() click to toggle source
# File lib/jsonerino/ast.rb, line 69
def initialize()
  @value = {}
end

Public Instance Methods

push(key, value) click to toggle source
# File lib/jsonerino/ast.rb, line 73
def push(key, value)
  raise 'Value is not instnace of JsonValue' unless value.is_a? JsonValue

  @value[key] = value
end
resolve() click to toggle source
# File lib/jsonerino/ast.rb, line 79
def resolve
  @value.keys.each do |key|
    @value[key] = @value[key].resolve
  end
  @value
end