Module: WallE::Logger

Included in:
SerialSnoop
Defined in:
lib/wall_e/logger.rb

Instance Method Summary collapse

Instance Method Details

#error(message) ⇒ Object



7
8
9
# File 'lib/wall_e/logger.rb', line 7

def error(message)
  log("\033[31m#{message}\033\[0m")
end

#info(message) ⇒ Object



3
4
5
# File 'lib/wall_e/logger.rb', line 3

def info(message)
  log("\033[34m#{message}\033\[0m")
end

#log(message) ⇒ Object



11
12
13
# File 'lib/wall_e/logger.rb', line 11

def log(message)
  puts message
end