Class: Mocks::MethodLogger

Inherits:
Mock show all
Defined in:
lib/mocks/method_logger.rb

Instance Attribute Summary

Attributes inherited from Mock

#mock_calls

Instance Method Summary collapse

Methods inherited from Mock

#initialize, #mock_add, #mock_args, #mock_calls_array, #mock_clear, #mock_freeze, #mock_recall, #mock_size

Methods included from Abstract

included

Constructor Details

This class inherits a constructor from Mocks::Mock

Instance Method Details

#log(*args, &block) ⇒ Object



11
12
13
# File 'lib/mocks/method_logger.rb', line 11

def log ( *args, &block )
  mock_add MethodCall.new(*args, &block)
end