Class: Muack::Coat
Instance Attribute Summary
Attributes inherited from Mock
Instance Method Summary collapse
-
#__mock_dispatch(actual_call) ⇒ Object
used for mocked object to dispatch mocked method.
Methods inherited from Mock
#__mock_class, #__mock_defis_pop, #__mock_defis_push, #__mock_dispatch_call, #__mock_reset, #__mock_verify, #initialize, #inspect, #method_missing
Constructor Details
This class inherits a constructor from Muack::Mock
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Muack::Mock
Instance Method Details
#__mock_dispatch(actual_call) ⇒ Object
used for mocked object to dispatch mocked method
7 8 9 10 11 12 13 14 |
# File 'lib/muack/coat.rb', line 7 def __mock_dispatch actual_call defi = super if __mock_defis[defi.msg].empty? __mock_reset_method(defi) __mock_injected.delete(defi.msg) end defi end |