Sha256: 5edf669efd84071b5dcd0e186a694f907ac71667f43e1c58789a23f0d73668f8
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
require 'colored' module Wordmove class Logger INFO = 0 VERBOSE = 1 attr_accessor :level def log(l, message) colors = [ :green, :cyan ] if l <= level puts " " * l + message.send(colors[l]) end end def info(message) log INFO, message end def verbose(message) log VERBOSE, message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wordmove-0.0.1 | lib/wordmove/logger.rb |