Class: Solargraph::Pin::InstanceVariable
- Inherits:
-
BaseVariable
- Object
- Base
- BaseVariable
- Solargraph::Pin::InstanceVariable
- Defined in:
- lib/solargraph/pin/instance_variable.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(source, node, namespace, scope) ⇒ InstanceVariable
constructor
A new instance of InstanceVariable.
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
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
4 5 6 |
# File 'lib/solargraph/pin/instance_variable.rb', line 4 def scope @scope end |