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
#equal?(other) ⇒ Boolean
10
11
12
|
# File 'lib/yard/code_objects/root_object.rb', line 10
def equal?(other)
other == :root ? true : super(other)
end
|
#hash ⇒ Object
14
|
# File 'lib/yard/code_objects/root_object.rb', line 14
def hash; :root.hash end
|
#inspect ⇒ Object
7
|
# File 'lib/yard/code_objects/root_object.rb', line 7
def inspect; @inspect ||= "#<yardoc root>" end
|
#path ⇒ Object
6
|
# File 'lib/yard/code_objects/root_object.rb', line 6
def path; @path ||= "" end
|
#root? ⇒ Boolean
8
|
# File 'lib/yard/code_objects/root_object.rb', line 8
def root?; true end
|
#title ⇒ Object
9
|
# File 'lib/yard/code_objects/root_object.rb', line 9
def title; 'Top Level Namespace' end
|