Class: YARD::CodeObjects::RootObject
Overview
Represents the root namespace object (the invisible Ruby module that holds all top level modules, class and other objects).
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class YARD::CodeObjects::Base
Instance Method Details
permalink
#equal?(other) ⇒ Boolean
[View source]
12
13
14
|
# File 'lib/yard/code_objects/root_object.rb', line 12
def equal?(other)
other == :root ? true : super(other)
end
|
[View source]
16
|
# File 'lib/yard/code_objects/root_object.rb', line 16
def hash; :root.hash end
|
[View source]
8
|
# File 'lib/yard/code_objects/root_object.rb', line 8
def inspect; @inspect ||= "#<yardoc root>" end
|
[View source]
7
|
# File 'lib/yard/code_objects/root_object.rb', line 7
def path; @path ||= "" end
|
[View source]
9
|
# File 'lib/yard/code_objects/root_object.rb', line 9
def root?; true end
|
[View source]
10
|
# File 'lib/yard/code_objects/root_object.rb', line 10
def title; 'Top Level Namespace' end
|