Class: RubyIndexer::Entry::Accessor

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

Instance Attribute Summary

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, #initialize

Methods inherited from RubyIndexer::Entry

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

Constructor Details

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

Instance Method Details

#signaturesObject

: -> Array



326
327
328
329
330
331
332
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 326

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