Class: AbstractSyntaxTreeKit::Node::GASGN
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::GASGN
- Defined in:
- lib/astkit/node/gasgn.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, name:, value:) ⇒ GASGN
constructor
A new instance of GASGN.
Constructor Details
#initialize(node:, name:, value:) ⇒ GASGN
Returns a new instance of GASGN.
6 7 8 9 10 |
# File 'lib/astkit/node/gasgn.rb', line 6 def initialize(node:, name:, value:) super(node) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/astkit/node/gasgn.rb', line 4 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/astkit/node/gasgn.rb', line 4 def value @value end |