Sha256: 1d2123cd0dee0ee6e912ae95a5135555680d055a43986142a940ca9a59953454
Contents?: true
Size: 417 Bytes
Versions: 17
Compression:
Stored size: 417 Bytes
Contents
module MfDebugger class Logger class << self attr_accessor :debug_on @debug_on = false end end def self.mf_debug(msg,&block) if MfDebugger::Logger.debug_on if block_given? block.call end STDOUT.puts msg end end def mf_debug(msg,&block) if block_given? MfDebugger.mf_debug(msg,&block) else MfDebugger.mf_debug(msg) end end end
Version data entries
17 entries across 17 versions & 1 rubygems