Class: Solargraph::Pin::Plugin::Method
- Defined in:
- lib/solargraph/pin/plugin/method.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Attributes inherited from Base
Instance Method Summary collapse
- #completion_item_kind ⇒ Object
-
#initialize(name:, path:, return_type:, parameters:) ⇒ Method
constructor
A new instance of Method.
Methods inherited from Base
#==, #comments, #context, #deprecated?, #directives, #docstring, #filename, #infer, #macros, #maybe_directives?, #nearly?, #return_complex_type, #symbol_kind, #to_s, #try_merge!, #variable?
Methods included from Documenting
Methods included from Conversions
#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/solargraph/pin/plugin/method.rb', line 5 def name @name end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
8 9 10 |
# File 'lib/solargraph/pin/plugin/method.rb', line 8 def parameters @parameters end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/solargraph/pin/plugin/method.rb', line 6 def path @path end |
#return_type ⇒ Object (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 |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
9 10 11 |
# File 'lib/solargraph/pin/plugin/method.rb', line 9 def scope @scope end |
#visibility ⇒ Object (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
#completion_item_kind ⇒ Object
19 20 21 |
# File 'lib/solargraph/pin/plugin/method.rb', line 19 def completion_item_kind Solargraph::LanguageServer::CompletionItemKinds::METHOD end |