Sha256: 24c7a1e365b8664dcdfa292e534af7e1c50301aacd2ccb44041878df0219213e

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

module ActiveMocker
  class Logger

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_mocker-1.5.2 lib/active_mocker/logger.rb
active_mocker-1.5.1 lib/active_mocker/logger.rb
active_mocker-1.5 lib/active_mocker/logger.rb
active_mocker-1.4.2 lib/active_mocker/logger.rb
active_mocker-1.4.1 lib/active_mocker/logger.rb