Class: Jsonerino::JsonBool

Inherits:
JsonValue show all
Defined in:
lib/jsonerino/ast.rb

Instance Attribute Summary collapse

Attributes inherited from JsonValue

#finish, #start

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ JsonBool

Returns a new instance of JsonBool.



15
16
17
# File 'lib/jsonerino/ast.rb', line 15

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



13
14
15
# File 'lib/jsonerino/ast.rb', line 13

def value
  @value
end

Instance Method Details

#resolveObject



19
20
21
# File 'lib/jsonerino/ast.rb', line 19

def resolve
  @value
end