Class: RubyIndexer::Entry::Alias
- Inherits:
-
RubyIndexer::Entry
- Object
- RubyIndexer::Entry
- RubyIndexer::Entry::Alias
- 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
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes inherited from RubyIndexer::Entry
#comments, #file_path, #location, #name, #visibility
Instance Method Summary collapse
-
#initialize(target, unresolved_alias) ⇒ Alias
constructor
A new instance of Alias.
Methods inherited from RubyIndexer::Entry
Constructor Details
#initialize(target, unresolved_alias) ⇒ Alias
Returns a new instance of Alias.
352 353 354 355 356 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 352 def initialize(target, unresolved_alias) super(unresolved_alias.name, unresolved_alias.file_path, unresolved_alias.location, unresolved_alias.comments) @target = target end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
349 350 351 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 349 def target @target end |