Sha256: 16ba9372b36ba049f0c313efb403b02af9dc79672da81be0fe27dbad554090b4

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 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; "" 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yard-0.6.3 lib/yard/code_objects/root_object.rb
yard-0.6.2 lib/yard/code_objects/root_object.rb
yard-0.6.1 lib/yard/code_objects/root_object.rb
yard-0.6.0 lib/yard/code_objects/root_object.rb
yard-0.5.8 lib/yard/code_objects/root_object.rb
yard-0.5.7 lib/yard/code_objects/root_object.rb