Class: Solargraph::Pin::InstanceVariable

Inherits:
BaseVariable show all
Defined in:
lib/solargraph/pin/instance_variable.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#namespace, #node, #source

Instance Method Summary collapse

Methods inherited from BaseVariable

#kind, #name, #return_type, #signature

Methods included from NodeMethods

#const_from, #infer_literal_node_type, #pack_name, #resolve_node_signature, #unpack_name

Methods inherited from Base

#docstring, #filename, #kind, #location, #name, #parameters, #path, #return_type, #signature, #value

Constructor Details

#initialize(source, node, namespace, scope) ⇒ InstanceVariable

Returns a new instance of InstanceVariable.



6
7
8
9
# File 'lib/solargraph/pin/instance_variable.rb', line 6

def initialize source, node, namespace, scope
  super(source, node, namespace)
  @scope = scope
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



4
5
6
# File 'lib/solargraph/pin/instance_variable.rb', line 4

def scope
  @scope
end