lib/yard/code_objects/root_object.rb in yard-0.5.6 vs lib/yard/code_objects/root_object.rb in yard-0.5.7

- old
+ new

@@ -4,8 +4,13 @@ # holds all top level modules, class and other objects). class RootObject < ModuleObject def path; "" end def inspect; "#<yardoc root>" end def root?; true end + def equal?(other) + other == :root ? true : super(other) + end + + def hash; :root.hash end end end end \ No newline at end of file