# File lib/rr/method_dispatches/method_missing_dispatch.rb, line 16 def call if Injections::DoubleInjection.exists?(subject_class, method_name) @double = find_double_to_attempt if double return_value = extract_subject_from_return_value(call_implementation) if after_call_proc extract_subject_from_return_value(after_call_proc.call(return_value)) else return_value end else double_not_found_error end else call_original_method end end