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