Sha256: 881d7c69d08cfb9c68143e88c7607c468a0ec7dbe11368873257989dd87bb884

Contents?: true

Size: 381 Bytes

Versions: 13

Compression:

Stored size: 381 Bytes

Contents

module Dawn
  module Utils
    def debug_me(msg)
      $logger.debug(msg) if @debug
    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

13 entries across 13 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 lib/dawn/utils.rb
dawnscanner-1.6.8 lib/dawn/utils.rb
dawnscanner-1.6.7 lib/dawn/utils.rb
dawnscanner-1.6.6 lib/dawn/utils.rb
dawnscanner-1.6.5 lib/dawn/utils.rb
dawnscanner-1.6.4 lib/dawn/utils.rb
dawnscanner-1.6.3 lib/dawn/utils.rb
dawnscanner-1.6.2 lib/dawn/utils.rb
dawnscanner-1.6.1 lib/dawn/utils.rb
dawnscanner-1.6.0 lib/dawn/utils.rb
dawnscanner-1.5.2 lib/dawn/utils.rb
dawnscanner-1.5.1 lib/dawn/utils.rb
dawnscanner-1.5.0 lib/dawn/utils.rb