Module: MfDebugger

Defined in:
lib/metric_fu.rb

Defined Under Namespace

Classes: Logger

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.mf_debug(msg, &block) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/metric_fu.rb', line 32

def self.mf_debug(msg,&block)
  if MfDebugger::Logger.debug_on
    if block_given?
      block.call
    end
    STDOUT.puts msg
  end
end

Instance Method Details

#mf_debug(msg, &block) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/metric_fu.rb', line 40

def mf_debug(msg,&block)
  if block_given?
    MfDebugger.mf_debug(msg,&block)
  else
    MfDebugger.mf_debug(msg)
  end
end