Sha256: b1057b8c3598176acea20037695add1ea13ea1a13098e0c3ae98fbeaa5126602

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Dawn
  module Utils

    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(msg)
      $logger.debug(msg) if @debug
    end

    def __debug_me_and_return(msg, status)
      $logger.debug(msg) if @debug
      return status
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dawnscanner-1.4.2 lib/dawn/utils.rb
dawnscanner-1.4.1 lib/dawn/utils.rb
dawnscanner-1.4.0 lib/dawn/utils.rb
dawnscanner-1.3.5 lib/dawn/utils.rb