Class: RubyIndexer::Entry::Method
- Inherits:
-
Member
- Object
- RubyIndexer::Entry
- Member
- RubyIndexer::Entry::Method
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Instance Attribute Summary collapse
-
#name_location ⇒ Object
readonly
Returns the location of the method name, excluding parameters or the body : Location.
-
#signatures ⇒ Object
readonly
: Array.
Attributes inherited from Member
Attributes inherited from RubyIndexer::Entry
#location, #name, #uri, #visibility
Instance Method Summary collapse
-
#initialize(name, uri, location, name_location, comments, signatures, visibility, owner) ⇒ Method
constructor
: (String name, URI::Generic uri, Location location, Location name_location, String? comments, Array signatures, Symbol visibility, Entry::Namespace? owner) -> void.
Methods inherited from Member
#decorated_parameters, #formatted_signatures
Methods inherited from RubyIndexer::Entry
#comments, #file_name, #file_path, #private?, #protected?, #public?
Constructor Details
#initialize(name, uri, location, name_location, comments, signatures, visibility, owner) ⇒ Method
: (String name, URI::Generic uri, Location location, Location name_location, String? comments, Array signatures, Symbol visibility, Entry::Namespace? owner) -> void
345 346 347 348 349 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 345 def initialize(name, uri, location, name_location, comments, signatures, visibility, owner) # rubocop:disable Metrics/ParameterLists super(name, uri, location, comments, visibility, owner) @signatures = signatures @name_location = name_location end |
Instance Attribute Details
#name_location ⇒ Object (readonly)
Returns the location of the method name, excluding parameters or the body : Location
342 343 344 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 342 def name_location @name_location end |
#signatures ⇒ Object (readonly)
: Array
338 339 340 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 338 def signatures @signatures end |