Class: RubyIndexer::Entry::ConstantAlias

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

Overview

Alias represents a resolved alias, which points to an existing constant target

Instance Attribute Summary collapse

Attributes inherited from RubyIndexer::Entry

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

Instance Method Summary collapse

Methods inherited from RubyIndexer::Entry

#file_name, #private?, #protected?, #public?

Constructor Details

#initialize(target, unresolved_alias) ⇒ ConstantAlias



462
463
464
465
466
467
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 462

def initialize(target, unresolved_alias)
  super(unresolved_alias.name, unresolved_alias.file_path, unresolved_alias.location, unresolved_alias.comments)

  @visibility = unresolved_alias.visibility
  @target = target
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



459
460
461
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 459

def target
  @target
end