Class: AbstractSyntaxTreeKit::Node::ARGSPUSH

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/argspush.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

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

#arrayObject (readonly)

Returns the value of attribute array.



4
5
6
# File 'lib/astkit/node/argspush.rb', line 4

def array
  @array
end

#elementObject (readonly)

Returns the value of attribute element.



4
5
6
# File 'lib/astkit/node/argspush.rb', line 4

def element
  @element
end