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

Version Path
metric_fu-4.2.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.1.3 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.1.2 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.1.1 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.1.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-4.0.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-3.0.1 lib/metric_fu/logging/mf_debugger.rb
metric_fu-3.0.0 lib/metric_fu/logging/mf_debugger.rb
metric_fu-2.1.4.pre5 lib/metric_fu/logging/mf_debugger.rb
metric_fu-2.1.4.pre4 lib/metric_fu/logging/mf_debugger.rb
metric_fu-2.1.4.pre2 lib/metric_fu/logging/mf_debugger.rb
metric_fu-2.1.4.pre lib/metric_fu/logging/mf_debugger.rb
metric_fu-2.1.3.7.18.1 lib/logging/mf_debugger.rb
metric_fu-2.1.3.7.19 lib/logging/mf_debugger.rb
metric_fu-2.1.3.6 lib/logging/mf_debugger.rb
metric_fu-2.1.3.5 lib/logging/mf_debugger.rb
metric_fu-2.1.3.4 lib/logging/mf_debugger.rb