Sha256: 50fdce9fb70594802edc45a69a542f5ae21eea84108707f9005cfe3309516b47

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 Bytes

Contents

module Dawn
  module Utils
    def debug_me(msg)
      $logger.debug(msg) if $debug
    end
    def debug_verbosely(msg)
      $logger.debug("VERBOSE: #{msg}") if $debug and $verbose
    end

    def debug_me_and_return_true(msg)
      __debug_me_and_return(msg, true)
    end
    def debug_me_and_return_false(msg)
      __debug_me_and_return(msg, false)
    end
    def __debug_me_and_return(msg, status)
      $logger.debug(msg) if $debug
      return status
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dawnscanner-2.2.0 lib/dawn/utils.rb
dawnscanner-2.1.1 lib/dawn/utils.rb
dawnscanner-2.1.0 lib/dawn/utils.rb
dawnscanner-2.0.0 lib/dawn/utils.rb
dawnscanner-2.0.0.rc5 lib/dawn/utils.rb
dawnscanner-2.0.0.rc4 lib/dawn/utils.rb
dawnscanner-2.0.0.rc3 lib/dawn/utils.rb
dawnscanner-2.0.0.rc2 lib/dawn/utils.rb
dawnscanner-2.0.0.rc1 lib/dawn/utils.rb