class Protocol::HTTP2::Dependency

def exclusive_child(parent)

Parameters:
  • parent (Dependency) -- the dependency which will be inserted, taking control of all current children.
def exclusive_child(parent)
	parent.children = @children
	
	@children&.each_value do |child|
		child.parent = parent
	end
	
	parent.clear_cache!
	
	@children = {parent.id => parent}
	self.clear_cache!
	
	parent.parent = self
end