class Solargraph::Pin::InstanceVariable

Public Instance Methods

binder() click to toggle source
# File lib/solargraph/pin/instance_variable.rb, line 6
def binder
  closure.binder
end
context() click to toggle source
Calls superclass method Solargraph::Pin::Common#context
# File lib/solargraph/pin/instance_variable.rb, line 14
def context
  @context ||= begin
    result = super
    if scope == :class
      ComplexType.parse("Class<#{result.namespace}>")
    else
      ComplexType.parse("#{result.namespace}")
    end
  end
end
nearly?(other) click to toggle source
Calls superclass method Solargraph::Pin::Base#nearly?
# File lib/solargraph/pin/instance_variable.rb, line 25
def nearly? other
  super && binder == other.binder
end
scope() click to toggle source
# File lib/solargraph/pin/instance_variable.rb, line 10
def scope
  closure.binder.scope
end