class Async::Node
def parent=(parent)
-
(self)
-
Parameters:
-
parent
(Node, nil
) -- the parent to attach to, or nil to detach.
def parent=(parent) return if @parent.equal?(parent) if @parent @parent.reap(self) @parent = nil end if parent @parent = parent @parent.children << self end return self end