Class: RubyIndexer::Entry::Method

Inherits:
Member show all
Defined in:
lib/ruby_indexer/lib/ruby_indexer/entry.rb

Instance Attribute Summary collapse

Attributes inherited from Member

#owner

Attributes inherited from RubyIndexer::Entry

#location, #name, #uri, #visibility

Instance Method Summary collapse

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

#signaturesObject (readonly)

: Array



338
339
340
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 338

def signatures
  @signatures
end