Class: ActiveMocker::Logger Private

Inherits:
Object
  • Object
show all
Defined in:
lib/active_mocker/logger.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.method_missing(meth, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
# File 'lib/active_mocker/logger.rb', line 9

def self.method_missing(meth, *args, &block)
  @@logger ||= nil
  return nil if @@logger.nil?
  return @@logger.send(meth, *args, &block)
end

.set(logger) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
# File 'lib/active_mocker/logger.rb', line 5

def self.set(logger)
  @@logger = logger
end