Class: MiniRuby::AST::NilLiteralNode
- Inherits:
-
ExpressionNode
- Object
- Node
- ExpressionNode
- MiniRuby::AST::NilLiteralNode
- Defined in:
- lib/miniruby/ast.rb
Overview
Represents a nil literal eg. ‘nil`
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
830 831 832 |
# File 'lib/miniruby/ast.rb', line 830 def inspect(indent = 0) "#{INDENT_UNIT * indent}nil" end |
#to_s(indent = 0) ⇒ Object
: (?Integer indent) -> String
824 825 826 |
# File 'lib/miniruby/ast.rb', line 824 def to_s(indent = 0) "#{INDENT_UNIT * indent}nil" end |