Class: MiniRuby::AST::Node
- Inherits:
-
Object
- Object
- MiniRuby::AST::Node
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/miniruby/ast.rb
Overview
Abstract class representing an AST node.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#span ⇒ Object
: Span.
Instance Method Summary collapse
-
#==(other) ⇒ Object
: (Object other) -> bool.
-
#initialize(span: Span::ZERO) ⇒ Node
constructor
: (?span: Span) -> void.
- #inspect(indent = 0) ⇒ Object
- #to_s(indent = 0) ⇒ Object
Constructor Details
Instance Attribute Details
#span ⇒ Object
: Span
20 21 22 |
# File 'lib/miniruby/ast.rb', line 20 def span @span end |
Instance Method Details
#==(other) ⇒ Object
: (Object other) -> bool
28 29 30 |
# File 'lib/miniruby/ast.rb', line 28 def ==(other) other.is_a?(self.class) end |
#inspect(indent = 0) ⇒ Object
38 |
# File 'lib/miniruby/ast.rb', line 38 def inspect(indent = 0); end |
#to_s(indent = 0) ⇒ Object
34 |
# File 'lib/miniruby/ast.rb', line 34 def to_s(indent = 0); end |