Sha256: ce5c7ad0fc0455005b8a9656fe91c96fc8179b9775fbbeb53b2f05b8d1c2aca9

Contents?: true

Size: 488 Bytes

Versions: 38

Compression:

Stored size: 488 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 title; 'Top Level Namespace' end
      def equal?(other)
        other == :root ? true : super(other)
      end

      def hash; :root.hash end
    end
  end
end

Version data entries

38 entries across 33 versions & 7 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/code_objects/root_object.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/code_objects/root_object.rb
yard-0.9.5 lib/yard/code_objects/root_object.rb
yard-0.9.4 lib/yard/code_objects/root_object.rb
yard-0.9.3 lib/yard/code_objects/root_object.rb
yard-0.9.2 lib/yard/code_objects/root_object.rb
yard-0.9.1 lib/yard/code_objects/root_object.rb
yard-0.9.0 lib/yard/code_objects/root_object.rb
yard-0.8.7.6 lib/yard/code_objects/root_object.rb
yard-0.8.7.5 lib/yard/code_objects/root_object.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
yard-0.8.7.4 lib/yard/code_objects/root_object.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/code_objects/root_object.rb