Class: RubyJsonParser::AST::FalseLiteralNode

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_json_parser/ast.rb

Overview

Represents a false literal eg. ‘false`

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



59
60
61
# File 'lib/ruby_json_parser/ast.rb', line 59

def ==(other)
  other.is_a?(FalseLiteralNode)
end

#inspect(indent = 0) ⇒ Object



69
70
71
# File 'lib/ruby_json_parser/ast.rb', line 69

def inspect(indent = 0)
  "#{INDENT_UNIT * indent}false"
end

#to_sObject



64
65
66
# File 'lib/ruby_json_parser/ast.rb', line 64

def to_s
  'false'
end