Class: RubyIndexer::Entry::Class
- Inherits:
-
Namespace
- Object
- RubyIndexer::Entry
- Namespace
- RubyIndexer::Entry::Class
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Instance Attribute Summary collapse
-
#parent_class ⇒ Object
readonly
Returns the value of attribute parent_class.
Attributes inherited from RubyIndexer::Entry
#comments, #file_path, #location, #name, #visibility
Instance Method Summary collapse
-
#initialize(name, file_path, location, comments, parent_class) ⇒ Class
constructor
A new instance of Class.
Methods inherited from Namespace
Methods inherited from RubyIndexer::Entry
Constructor Details
#initialize(name, file_path, location, comments, parent_class) ⇒ Class
Returns a new instance of Class.
69 70 71 72 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 69 def initialize(name, file_path, location, comments, parent_class) super(name, file_path, location, comments) @parent_class = T.let(parent_class, T.nilable(String)) end |
Instance Attribute Details
#parent_class ⇒ Object (readonly)
Returns the value of attribute parent_class.
58 59 60 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 58 def parent_class @parent_class end |