class Solargraph::Pin::InstanceVariable
Public Instance Methods
Source
# File lib/solargraph/pin/instance_variable.rb, line 7 def binder closure.binder end
@return [ComplexType]
Source
# File lib/solargraph/pin/instance_variable.rb, line 17 def context @context ||= begin result = super if scope == :class ComplexType.parse("::Class<#{result.rooted_namespace}>") else result.reduce_class_type end end end
@return [ComplexType]
Calls superclass method
Solargraph::Pin::Common#context
Source
# File lib/solargraph/pin/instance_variable.rb, line 29 def nearly? other super && binder == other.binder end
@param other [InstanceVariable]
Calls superclass method
Solargraph::Pin::Base#nearly?
Source
# File lib/solargraph/pin/instance_variable.rb, line 12 def scope closure.binder.scope end
@return [::Symbol]