Class: RubyIndexer::Entry::Class
- Inherits:
-
Namespace
- Object
- RubyIndexer::Entry
- Namespace
- RubyIndexer::Entry::Class
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent_class ⇒ Object
readonly
The unresolved name of the parent class.
Attributes inherited from Namespace
Attributes inherited from RubyIndexer::Entry
#configuration, #location, #name, #uri, #visibility
Instance Method Summary collapse
-
#ancestor_hash ⇒ Object
: -> Integer.
-
#initialize(configuration, nesting, uri, location, name_location, comments, parent_class) ⇒ Class
constructor
: (Configuration configuration, Array nesting, URI::Generic uri, Location location, Location name_location, String? comments, String? parent_class) -> void.
Methods inherited from Namespace
#mixin_operation_module_names, #mixin_operations
Methods inherited from RubyIndexer::Entry
#comments, #file_name, #file_path, #private?, #protected?, #public?
Constructor Details
#initialize(configuration, nesting, uri, location, name_location, comments, parent_class) ⇒ Class
: (Configuration configuration, Array nesting, URI::Generic uri, Location location, Location name_location, String? comments, String? parent_class) -> void
168 169 170 171 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 168 def initialize(configuration, nesting, uri, location, name_location, comments, parent_class) # rubocop:disable Metrics/ParameterLists super(configuration, nesting, uri, location, name_location, comments) @parent_class = parent_class end |
Instance Attribute Details
#parent_class ⇒ Object (readonly)
The unresolved name of the parent class. This may return nil, which indicates the lack of an explicit parent and therefore ::Object is the correct parent class : String?
165 166 167 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 165 def parent_class @parent_class end |
Instance Method Details
#ancestor_hash ⇒ Object
: -> Integer
175 176 177 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 175 def ancestor_hash [mixin_operation_module_names, @parent_class].hash end |