class Solargraph::Pin::InstanceVariable

Public Instance Methods

binder() click to toggle source
# File lib/solargraph/pin/instance_variable.rb, line 5
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 13
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 24
def nearly? other
  super && binder == other.binder
end
scope() click to toggle source
# File lib/solargraph/pin/instance_variable.rb, line 9
def scope
  closure.binder.scope
end