Class: MiniRuby::AST::FalseLiteralNode
- Inherits:
-
ExpressionNode
- Object
- Node
- ExpressionNode
- MiniRuby::AST::FalseLiteralNode
- Defined in:
- lib/miniruby/ast.rb
Overview
Represents a false literal eg. ‘false`
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#inspect(indent = 0) ⇒ Object
: (?Integer indent) -> String.
-
#to_s(indent = 0) ⇒ Object
: (?Integer indent) -> String.
Methods inherited from Node
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 |