Sha256: 7d127c5865b553520b6007cf2b3cc2ddbeadd09c3680520807eaab97a2477679

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

module YARD
  module CodeObjects
    # Represents the root namespace object (the invisible Ruby module that
    # holds all top level modules, class and other objects).
    class RootObject < ModuleObject
      def path; @path ||= "" end
      def inspect; @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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-0.6.8 lib/yard/code_objects/root_object.rb
yard-0.6.7 lib/yard/code_objects/root_object.rb
yard-0.6.6 lib/yard/code_objects/root_object.rb
yard-0.6.5 lib/yard/code_objects/root_object.rb
yard-0.6.4 lib/yard/code_objects/root_object.rb