Method: RR::MethodDispatches::MethodDispatch#call
- Defined in:
- lib/rr/method_dispatches/method_dispatch.rb
#call ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rr/method_dispatches/method_dispatch.rb', line 15 def call space.record_call(subject, method_name, args, kwargs, block) if double double.method_call(args, kwargs) call_yields return_value_1 = call_implementation return_value_2 = extract_subject_from_return_value(return_value_1) if after_call_proc extract_subject_from_return_value(after_call_proc.call(return_value_2)) else return_value_2 end else double_not_found_error end end |