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

: (?Integer indent) -> String



800
801
802
# File 'lib/miniruby/ast.rb', line 800

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

#to_s(indent = 0) ⇒ Object

: (?Integer indent) -> String



794
795
796
# File 'lib/miniruby/ast.rb', line 794

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