module Poesie::Log
Public Class Methods
error(str)
click to toggle source
# File lib/log.rb, line 12 def self.error(str) puts "\e[1;31m! #{str}\e[0m" unless @@quiet end
info(str)
click to toggle source
# File lib/log.rb, line 16 def self.info(str) puts "\e[1;32m√ #{str}\e[0m" unless @@quiet end
quiet=(value)
click to toggle source
# File lib/log.rb, line 4 def self.quiet=(value) @@quiet = value end
subtitle(str)
click to toggle source
# File lib/log.rb, line 20 def self.subtitle(str) puts "\e[1;33m√ #{str}\e[0m" unless @@quiet end
title(str)
click to toggle source
# File lib/log.rb, line 8 def self.title(str) # bg yellow puts "\e[44;37m#{str}\e[0m" unless @@quiet end