Class: Parser::Source::Map::VariableAssignment
- Inherits:
-
Operator
- Object
- Parser::Source::Map
- Operator
- Parser::Source::Map::VariableAssignment
- Defined in:
- lib/parser/source/map/variable_assignment.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Operator
Attributes inherited from Parser::Source::Map
Instance Method Summary collapse
-
#initialize(name, operator, expression) ⇒ VariableAssignment
constructor
A new instance of VariableAssignment.
Constructor Details
#initialize(name, operator, expression) ⇒ VariableAssignment
Returns a new instance of VariableAssignment.
7 8 9 10 11 |
# File 'lib/parser/source/map/variable_assignment.rb', line 7 def initialize(name, operator, expression) @name = name super(operator, expression) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/parser/source/map/variable_assignment.rb', line 5 def name @name end |