Sha256: 57bd198340b86f6dc170e9b49dbbff71742c86ed7b6e9ff86f151a19e1b92449
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
require 'forwardable' class Proco module Logger extend Forwardable class DummyLogger [:info, :debug, :warn, :error].each do |m| define_method m do |msg| end end end def logger @logger ||= DummyLogger.new end def_delegators :logger, :info, :debug, :warn, :error end#Logger end#Proco
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proco-0.0.2 | lib/proco/logger.rb |
proco-0.0.1 | lib/proco/logger.rb |