Method: Async::Node#initialize
- Defined in:
- lib/async/node.rb
#initialize(parent = nil, annotation: nil, transient: false) ⇒ Node
Create a new node in the tree.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/async/node.rb', line 74 def initialize(parent = nil, annotation: nil, transient: false) @parent = nil @children = nil @annotation = annotation @object_name = nil @transient = transient @head = nil @tail = nil if parent parent.add_child(self) end end |