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