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