Class: Transpec::AST::Node
- Inherits:
-
Astrolabe::Node
- Object
- Astrolabe::Node
- Transpec::AST::Node
- Defined in:
- lib/transpec/ast/node.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(type, children = [], properties = {}) ⇒ Node
constructor
A new instance of Node.
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
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
8 9 10 |
# File 'lib/transpec/ast/node.rb', line 8 def @metadata end |