Class: MiniRuby::AST::SelfLiteralNode
- Inherits:
-
ExpressionNode
- Object
- Node
- ExpressionNode
- MiniRuby::AST::SelfLiteralNode
- Defined in:
- lib/miniruby/ast.rb
Overview
Represents a self literal eg. ‘self`
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
845 846 847 |
# File 'lib/miniruby/ast.rb', line 845 def inspect(indent = 0) "#{INDENT_UNIT * indent}self" end |
#to_s(indent = 0) ⇒ Object
: (?Integer indent) -> String
839 840 841 |
# File 'lib/miniruby/ast.rb', line 839 def to_s(indent = 0) "#{INDENT_UNIT * indent}self" end |