Class: RubyIndexer::Entry::Class

Inherits:
Namespace show all
Extended by:
T::Sig
Defined in:
lib/ruby_indexer/lib/ruby_indexer/entry.rb

Instance Attribute Summary collapse

Attributes inherited from RubyIndexer::Entry

#comments, #file_path, #location, #name, #visibility

Instance Method Summary collapse

Methods inherited from Namespace

#short_name

Methods inherited from RubyIndexer::Entry

#file_name

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_classObject (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