Class: MiniRuby::AST::FalseLiteralNode

Inherits:
ExpressionNode show all
Defined in:
lib/miniruby/ast.rb

Overview

Represents a false literal eg. ‘false`

Instance Attribute Summary

Attributes inherited from Node

#span

Instance Method Summary collapse

Methods inherited from Node

#==, #initialize

Constructor Details

This class inherits a constructor from MiniRuby::AST::Node

Instance Method Details

#inspect(indent = 0) ⇒ Object



164
165
166
# File 'lib/miniruby/ast.rb', line 164

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

#to_s(indent = 0) ⇒ Object



159
160
161
# File 'lib/miniruby/ast.rb', line 159

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