Class: RubyIndexer::Entry::Method

Inherits:
RubyIndexer::Entry 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 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) ⇒ Method

Returns a new instance of Method.



113
114
115
116
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 113

def initialize(name, file_path, location, comments, parameters_node)
  super(name, file_path, location, comments)
  @parameters = T.let(list_params(parameters_node), T::Array[Parameter])
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



102
103
104
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 102

def parameters
  @parameters
end