Class: RubyJsonParser::AST::TrueLiteralNode
- Defined in:
- lib/ruby_json_parser/ast.rb
Overview
Represents a true literal eg. ‘true`
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
77 78 79 |
# File 'lib/ruby_json_parser/ast.rb', line 77 def ==(other) other.is_a?(TrueLiteralNode) end |
#inspect(indent = 0) ⇒ Object
87 88 89 |
# File 'lib/ruby_json_parser/ast.rb', line 87 def inspect(indent = 0) "#{INDENT_UNIT * indent}true" end |
#to_s ⇒ Object
82 83 84 |
# File 'lib/ruby_json_parser/ast.rb', line 82 def to_s 'true' end |