Sha256: 56b2d5603f7d8626e8d3c3a6b65bbc77fef9cc06323e68b101e43932333e53c0
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
module Rbfs class Logger attr_reader :config def initialize(config) @config = config end def info(msg) puts "\033[0;32m#{msg}\033[00m" end def puts(msg) puts "#{msg}" end def error(msg) puts "\033[0;31m#{msg}\033[00m" end def critical(msg) puts "\033[0;31m#{msg}\033[00m" exit 1 end def notice(msg) puts "\033[0;33m#{msg}\033[00m" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbfs-0.0.7 | lib/rbfs/logger.rb |