Sha256: 3f7dc3ac2cecdf67cc77d55711699160b1fae956c899ae191043d32b994bf52e

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require 'logger'
require 'pp'

module Nsume
  module DevHelper
    @@logger ||= Logger.new(STDOUT)
    @@logger.level = Logger::DEBUG

    class << self
      def log(message)
        @@logger.info(message)
      end

      def mlog(method)
        @@logger.debug("Method is [#{method}]")
      end

      def elog(path)
        @@logger.debug("File [#{File.basename(path)}] exists [#{File.exists?(path)}]")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nsume-0.0.5 lib/nsume/dev_helper.rb