Class: Loxxy::Ast::LoxSuperExpr
- Defined in:
- lib/loxxy/ast/lox_super_expr.rb
Instance Attribute Summary collapse
-
#object ⇒ Ast::LoxNode
The object to which the property belongs to.
-
#property ⇒ String
readonly
Name of a method name.
Attributes inherited from LoxNode
Instance Method Summary collapse
-
#initialize(aPosition, aMethodName) ⇒ LoxSuperExpr
constructor
A new instance of LoxSuperExpr.
-
#name ⇒ String
Quack like a LoxVariableExpr.
Methods inherited from LoxNode
Methods included from ASTVisitee
Constructor Details
#initialize(aPosition, aMethodName) ⇒ LoxSuperExpr
Returns a new instance of LoxSuperExpr.
16 17 18 19 |
# File 'lib/loxxy/ast/lox_super_expr.rb', line 16 def initialize(aPosition, aMethodName) super(aPosition) @property = aMethodName end |
Instance Attribute Details
#object ⇒ Ast::LoxNode
Returns the object to which the property belongs to.
9 10 11 |
# File 'lib/loxxy/ast/lox_super_expr.rb', line 9 def object @object end |
#property ⇒ String (readonly)
Returns Name of a method name.
12 13 14 |
# File 'lib/loxxy/ast/lox_super_expr.rb', line 12 def property @property end |
Instance Method Details
#name ⇒ String
Quack like a LoxVariableExpr
23 24 25 |
# File 'lib/loxxy/ast/lox_super_expr.rb', line 23 def name 'super' end |