Sha256: 3360e6e6246d837077687d1816d24af817b952c7afd7d712a5de43aa14d99b83

Contents?: true

Size: 735 Bytes

Versions: 2

Compression:

Stored size: 735 Bytes

Contents

# Graffiti RDF Store
# (originally written for Samizdat project)
#
#   Copyright (c) 2002-2011  Dmitry Borodaenko <angdraug@debian.org>
#
#   This program is free software.
#   You can distribute/modify this program under the terms of
#   the GNU General Public License version 3 or later.
#
# see doc/rdf-storage.txt for introduction and Graffiti Squish definition;
# see doc/storage-impl.txt for explanation of implemented algorithms
#
# vim: et sw=2 sts=2 ts=8 tw=0

module Graffiti

module Debug
  private

  DEBUG = false

  def debug(message = nil)
    return unless DEBUG

    message = yield if block_given?
    log message if message
  end

  def log(message)
    STDERR << 'Graffiti: ' << message.to_s << "\n"
  end
end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
graffiti-2.3.2 lib/graffiti/debug.rb
graffiti-2.3.1 lib/graffiti/debug.rb