Module: Sunzi::Logger

Defined in:
lib/sunzi/logger.rb

Class Method Summary collapse

Class Method Details

.error(text) ⇒ Object



12
13
14
# File 'lib/sunzi/logger.rb', line 12

def error(text)
  puts text.color(:red).bright
end

.info(text) ⇒ Object



4
5
6
# File 'lib/sunzi/logger.rb', line 4

def info(text)
  puts text.bright
end

.success(text) ⇒ Object



8
9
10
# File 'lib/sunzi/logger.rb', line 8

def success(text)
  puts text.color(:green).bright
end