Class: RubyIndexer::Entry::Method
- Inherits:
-
RubyIndexer::Entry
- Object
- RubyIndexer::Entry
- RubyIndexer::Entry::Method
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Attributes inherited from RubyIndexer::Entry
#comments, #file_path, #location, #name, #visibility
Instance Method Summary collapse
-
#initialize(name, file_path, location, comments, parameters_node) ⇒ Method
constructor
A new instance of Method.
Methods inherited from RubyIndexer::Entry
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
#parameters ⇒ Object (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 |