Class: AbstractSyntaxTreeKit::Node::COLON3

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

Returns a new instance of COLON3.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end