Class: Solargraph::ApiMap::MethodPin
- Inherits:
-
Object
- Object
- Solargraph::ApiMap::MethodPin
- Defined in:
- lib/solargraph/api_map/method_pin.rb
Instance Attribute Summary collapse
-
#docstring ⇒ Object
readonly
Returns the value of attribute docstring.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
-
#initialize(node, namespace, scope, visibility, docstring) ⇒ MethodPin
constructor
A new instance of MethodPin.
- #suggestion(api_map) ⇒ Object
Constructor Details
#initialize(node, namespace, scope, visibility, docstring) ⇒ MethodPin
10 11 12 13 14 15 16 |
# File 'lib/solargraph/api_map/method_pin.rb', line 10 def initialize node, namespace, scope, visibility, docstring @node = node @namespace = namespace @scope = scope @visibility = visibility @docstring = docstring end |
Instance Attribute Details
#docstring ⇒ Object (readonly)
Returns the value of attribute docstring.
8 9 10 |
# File 'lib/solargraph/api_map/method_pin.rb', line 8 def docstring @docstring end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/solargraph/api_map/method_pin.rb', line 5 def namespace @namespace end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/solargraph/api_map/method_pin.rb', line 4 def node @node end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'lib/solargraph/api_map/method_pin.rb', line 6 def scope @scope end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
7 8 9 |
# File 'lib/solargraph/api_map/method_pin.rb', line 7 def visibility @visibility end |
Instance Method Details
#suggestion(api_map) ⇒ Object
18 19 20 |
# File 'lib/solargraph/api_map/method_pin.rb', line 18 def suggestion(api_map) @suggestion ||= generate_suggestion(api_map) end |