Class: Transpec::AST::Node

Inherits:
Astrolabe::Node
  • Object
show all
Defined in:
lib/transpec/ast/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, children = [], properties = {}) ⇒ Node

Returns a new instance of Node.



10
11
12
13
# File 'lib/transpec/ast/node.rb', line 10

def initialize(type, children = [], properties = {})
  @metadata = {}
  super
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



8
9
10
# File 'lib/transpec/ast/node.rb', line 8

def 
  @metadata
end