class RSpec::Mocks::ObjectMethodReference

@private

def self.for(object_reference, method_name)

def self.for(object_reference, method_name)
  if ClassNewMethodReference.applies_to?(method_name) { object_reference.when_loaded { |o| o } }
    ClassNewMethodReference.new(object_reference, method_name)
  else
    super
  end
end

def find_method(object)

def find_method(object)
  object.method(@method_name)
end

def method_defined?(object)

def method_defined?(object)
  (class << object; self; end).method_defined?(@method_name)
end

def method_implemented?(object)

def method_implemented?(object)
  object.respond_to?(@method_name, true)
end

def visibility_from(object)

def visibility_from(object)
  MethodReference.method_visibility_for(object, @method_name)
end