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(api_map, node, namespace, scope, docstring) ⇒ IvarPin

Returns a new instance of IvarPin.



9
10
11
12
13
14
15
# File 'lib/solargraph/api_map/ivar_pin.rb', line 9

def initialize api_map, node, namespace, scope, docstring
  @api_map = api_map
  @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 ⇒ Object



17
18
19
# File 'lib/solargraph/api_map/ivar_pin.rb', line 17

def suggestion
  @suggestion ||= generate_suggestion
end