@private
# File lib/rspec/mocks/method_reference.rb, line 145 def find_method(object) object.method(@method_name) end
# File lib/rspec/mocks/method_reference.rb, line 141 def method_defined?(object) (class << object; self; end).method_defined?(@method_name) end
# File lib/rspec/mocks/method_reference.rb, line 137 def method_implemented?(object) object.respond_to?(@method_name, true) end
# File lib/rspec/mocks/method_reference.rb, line 149 def visibility_from(object) MethodReference.method_visibility_for(object, @method_name) end