Class: RubyIndexer::Entry::Method

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

Direct Known Subclasses

InstanceMethod, SingletonMethod

Instance Attribute Summary collapse

Attributes inherited from Member

#owner

Attributes inherited from RubyIndexer::Entry

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

Instance Method Summary collapse

Methods inherited from RubyIndexer::Entry

#file_name

Constructor Details

#initialize(name, file_path, location, comments, parameters_node, owner) ⇒ Method

rubocop:disable Metrics/ParameterLists



208
209
210
211
212
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 208

def initialize(name, file_path, location, comments, parameters_node, owner) # rubocop:disable Metrics/ParameterLists
  super(name, file_path, location, comments, owner)

  @parameters = T.let(list_params(parameters_node), T::Array[Parameter])
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



196
197
198
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 196

def parameters
  @parameters
end