@private
@private
# File lib/rspec/mocks/proxy.rb, line 279 def add_simple_expectation(method_name, response, location) method_double_for(method_name).configure_method super end
@private
# File lib/rspec/mocks/proxy.rb, line 285 def add_simple_stub(method_name, response) method_double_for(method_name).configure_method super end
# File lib/rspec/mocks/proxy.rb, line 302 def message_received(message, *args, &block) RSpec::Mocks.space.any_instance_recorders_from_ancestry_of(object).each do |subscriber| subscriber.notify_received_message(object, message, args, block) end super end
# File lib/rspec/mocks/proxy.rb, line 266 def original_method_handle_for(message) if any_instance_class_recorder_observing_method?(@object.class, message) message = ::RSpec::Mocks.space. any_instance_recorder_for(@object.class). build_alias_method_name(message) end ::RSpec::Support.method_handle_for(@object, message) rescue NameError nil end
# File lib/rspec/mocks/proxy.rb, line 297 def reset @method_doubles.each_value {|d| d.reset} super end
@private
# File lib/rspec/mocks/proxy.rb, line 291 def visibility_for(method_name) # We fall back to :public because by default we allow undefined methods # to be stubbed, and when we do so, we make them public. MethodReference.method_visibility_for(@object, method_name) || :public end
Generated with the Darkfish Rdoc Generator 2.