Class: RubyIndexer::Entry::Accessor

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

Instance Attribute Summary

Attributes inherited from Member

#owner

Attributes inherited from RubyIndexer::Entry

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

Instance Method Summary collapse

Methods inherited from Member

#decorated_parameters, #formatted_signatures, #initialize, #parameters

Methods inherited from RubyIndexer::Entry

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

Constructor Details

This class inherits a constructor from RubyIndexer::Entry::Member

Instance Method Details

#signaturesObject



364
365
366
367
368
369
370
371
372
373
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 364

def signatures
  @signatures ||= T.let(
    begin
      params = []
      params << RequiredParameter.new(name: name.delete_suffix("=").to_sym) if name.end_with?("=")
      [Entry::Signature.new(params)]
    end,
    T.nilable(T::Array[Signature]),
  )
end