Class: Solargraph::Pin::Plugin::Method

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/pin/plugin/method.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#namespace, #node, #source

Instance Method Summary collapse

Methods inherited from Base

#docstring, #filename, #location, #signature, #value

Constructor Details

#initialize(name:, path:, return_type:, parameters:) ⇒ Method

Returns a new instance of Method.



12
13
14
15
16
17
# File 'lib/solargraph/pin/plugin/method.rb', line 12

def initialize name:, path:, return_type:, parameters:
  @name = name
  @path = path
  @return_type = return_type
  @parameters = parameters
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/solargraph/pin/plugin/method.rb', line 5

def name
  @name
end

#parametersObject (readonly)

Returns the value of attribute parameters.



8
9
10
# File 'lib/solargraph/pin/plugin/method.rb', line 8

def parameters
  @parameters
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/solargraph/pin/plugin/method.rb', line 6

def path
  @path
end

#return_typeObject (readonly)

Returns the value of attribute return_type.



7
8
9
# File 'lib/solargraph/pin/plugin/method.rb', line 7

def return_type
  @return_type
end

#scopeObject (readonly)

Returns the value of attribute scope.



9
10
11
# File 'lib/solargraph/pin/plugin/method.rb', line 9

def scope
  @scope
end

#visibilityObject (readonly)

Returns the value of attribute visibility.



10
11
12
# File 'lib/solargraph/pin/plugin/method.rb', line 10

def visibility
  @visibility
end

Instance Method Details

#kindObject



19
20
21
# File 'lib/solargraph/pin/plugin/method.rb', line 19

def kind
  Solargraph::Suggestion::METHOD
end