Class: AbstractSyntaxTreeKit::Node::HASH

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/hash.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:, elements:) ⇒ HASH

Returns a new instance of HASH.



6
7
8
9
# File 'lib/astkit/node/hash.rb', line 6

def initialize(node:, elements:)
  super(node)
  @elements = elements
end

Instance Attribute Details

#elementsObject (readonly)

Returns the value of attribute elements.



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

def elements
  @elements
end