Module: Impersonator
- Extended by:
- Api
- Defined in:
- lib/impersonator.rb,
lib/impersonator/api.rb,
lib/impersonator/proxy.rb,
lib/impersonator/double.rb,
lib/impersonator/method.rb,
lib/impersonator/version.rb,
lib/impersonator/block_spy.rb,
lib/impersonator/recording.rb,
lib/impersonator/has_logger.rb,
lib/impersonator/record_mode.rb,
lib/impersonator/replay_mode.rb,
lib/impersonator/configuration.rb,
lib/impersonator/block_invocation.rb,
lib/impersonator/method_invocation.rb,
lib/impersonator/errors/configuration_error.rb,
lib/impersonator/method_matching_configuration.rb,
lib/impersonator/errors/method_invocation_error.rb
Defined Under Namespace
Modules: Api, Errors, HasLogger Classes: BlockInvocation, BlockSpy, Configuration, Double, Method, MethodInvocation, MethodMatchingConfiguration, Proxy, RecordMode, Recording, ReplayMode
Constant Summary collapse
- VERSION =
'0.1.3'.freeze
Class Method Summary collapse
-
.logger ⇒ ::Logger
The gem logger instance.
Methods included from Api
configuration, configure, current_recording, impersonate, impersonate_methods, recording, reset
Class Method Details
.logger ⇒ ::Logger
The gem logger instance
17 18 19 20 21 22 |
# File 'lib/impersonator.rb', line 17 def self.logger @logger ||= ::Logger.new(STDOUT).tap do |logger| logger.level = Logger::WARN logger.datetime_format = '%Y-%m-%d %H:%M:%S' end end |