lib/arborist/node/root.rb in arborist-0.4.0 vs lib/arborist/node/root.rb in arborist-0.5.0
- old
+ new
@@ -43,9 +43,16 @@
@status = 'up'
@status.freeze
end
+ ### Return the node family, so observers can know ancestry after
+ ### serialization for custom node types that inherit from this class.
+ def family
+ return :root
+ end
+
+
### Ignore restores of serialized root nodes.
def restore( other_node )
self.log.info "Ignoring restored root node."
end