Sha256: db0ea043d2acf762adc76d1e460dc9bfbaf2bd963c5bac53d8dfe090cdb07941
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module Pairzone class Logger class << self def configure_from(globals) @level = globals[:d] end def stdout @stdout ||= HighLine.new($stdin, $stdout) end def stderr @stderr ||= HighLine.new($stdin, $stderr) end def info(msg) stdout.say(msg) end def debug(msg) stderr.say("<%= color('debug:', YELLOW + BOLD) %> #{msg}") if @level end def error(msg) stdout.say("<%= color('Pairzone error:', RED + BOLD) %> #{msg}") end def ask(msg, &block) stdout.ask(msg, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pairzone-0.0.1 | lib/pairzone/logger.rb |