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