Class: RubyIndexer::Entry::UnresolvedMethodAlias
- Inherits:
-
RubyIndexer::Entry
- Object
- RubyIndexer::Entry
- RubyIndexer::Entry::UnresolvedMethodAlias
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Overview
An unresolved method alias is an alias entry for which we aren’t sure what the right hand side points to yet. For example, if we have ‘alias a b`, we create an unresolved alias for `a` because we aren’t sure immediate what ‘b` is referring to
Instance Attribute Summary collapse
-
#new_name ⇒ Object
readonly
: String.
-
#old_name ⇒ Object
readonly
: String.
-
#owner ⇒ Object
readonly
: Entry::Namespace?.
Attributes inherited from RubyIndexer::Entry
#location, #name, #uri, #visibility
Instance Method Summary collapse
-
#initialize(new_name, old_name, owner, uri, location, comments) ⇒ UnresolvedMethodAlias
constructor
: (String new_name, String old_name, Entry::Namespace? owner, URI::Generic uri, Location location, String? comments) -> void.
Methods inherited from RubyIndexer::Entry
#comments, #file_name, #file_path, #private?, #protected?, #public?
Constructor Details
#initialize(new_name, old_name, owner, uri, location, comments) ⇒ UnresolvedMethodAlias
: (String new_name, String old_name, Entry::Namespace? owner, URI::Generic uri, Location location, String? comments) -> void
435 436 437 438 439 440 441 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 435 def initialize(new_name, old_name, owner, uri, location, comments) # rubocop:disable Metrics/ParameterLists super(new_name, uri, location, comments) @new_name = new_name @old_name = old_name @owner = owner end |
Instance Attribute Details
#new_name ⇒ Object (readonly)
: String
429 430 431 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 429 def new_name @new_name end |
#old_name ⇒ Object (readonly)
: String
429 430 431 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 429 def old_name @old_name end |
#owner ⇒ Object (readonly)
: Entry::Namespace?
432 433 434 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 432 def owner @owner end |