Class: AbstractSyntaxTreeKit::Node::LVAR
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::LVAR
- Defined in:
- lib/astkit/node/lvar.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
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:) ⇒ LVAR
constructor
A new instance of LVAR.
Constructor Details
#initialize(node:, name:) ⇒ LVAR
Returns a new instance of LVAR.
6 7 8 9 |
# File 'lib/astkit/node/lvar.rb', line 6 def initialize(node:, name:) super(node) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/astkit/node/lvar.rb', line 4 def name @name end |