Class: Solargraph::ApiMap::CvarPin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_map, node, namespace, docstring) ⇒ CvarPin

Returns a new instance of CvarPin.



8
9
10
11
12
13
# File 'lib/solargraph/api_map/cvar_pin.rb', line 8

def initialize api_map, node, namespace, docstring
  @api_map = api_map
  @node = node
  @namespace = namespace
  @docstring = docstring
end

Instance Attribute Details

#docstring ⇒ Object (readonly)

Returns the value of attribute docstring.



6
7
8
# File 'lib/solargraph/api_map/cvar_pin.rb', line 6

def docstring
  @docstring
end

#namespace ⇒ Object (readonly)

Returns the value of attribute namespace.



5
6
7
# File 'lib/solargraph/api_map/cvar_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/cvar_pin.rb', line 4

def node
  @node
end

Instance Method Details

#suggestion ⇒ Object



15
16
17
# File 'lib/solargraph/api_map/cvar_pin.rb', line 15

def suggestion
  @suggestion ||= generate_suggestion
end