Class: Solargraph::ApiMap::IvarPin
- Inherits:
-
Object
- Object
- Solargraph::ApiMap::IvarPin
- Defined in:
- lib/solargraph/api_map/ivar_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.
Instance Method Summary collapse
-
#initialize(node, namespace, scope, docstring) ⇒ IvarPin
constructor
A new instance of IvarPin.
- #suggestion(api_map) ⇒ Object
Constructor Details
#initialize(node, namespace, scope, docstring) ⇒ IvarPin
Returns a new instance of IvarPin.
9 10 11 12 13 14 |
# File 'lib/solargraph/api_map/ivar_pin.rb', line 9 def initialize node, namespace, scope, docstring @node = node @namespace = namespace @scope = scope @docstring = docstring end |
Instance Attribute Details
#docstring ⇒ Object (readonly)
Returns the value of attribute docstring.
7 8 9 |
# File 'lib/solargraph/api_map/ivar_pin.rb', line 7 def docstring @docstring end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/solargraph/api_map/ivar_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/ivar_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/ivar_pin.rb', line 6 def scope @scope end |
Instance Method Details
#suggestion(api_map) ⇒ Object
16 17 18 |
# File 'lib/solargraph/api_map/ivar_pin.rb', line 16 def suggestion(api_map) @suggestion ||= generate_suggestion(api_map) end |