Class: Solargraph::ApiMap::IvarPin

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/api_map/ivar_pin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docstringObject (readonly)

Returns the value of attribute docstring.



7
8
9
# File 'lib/solargraph/api_map/ivar_pin.rb', line 7

def docstring
  @docstring
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



5
6
7
# File 'lib/solargraph/api_map/ivar_pin.rb', line 5

def namespace
  @namespace
end

#nodeObject (readonly)

Returns the value of attribute node.



4
5
6
# File 'lib/solargraph/api_map/ivar_pin.rb', line 4

def node
  @node
end

#scopeObject (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