Class: Apstrings::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/apstrings/logger.rb

Class Method Summary collapse

Class Method Details

.error(message) ⇒ Object



13
14
15
# File 'lib/apstrings/logger.rb', line 13

def self.error(message)
	puts "ERROR: #{message}".red
end

.info(message) ⇒ Object



5
6
7
# File 'lib/apstrings/logger.rb', line 5

def self.info(message)
	puts "INFO : #{message}".green
end

.warn(message) ⇒ Object



9
10
11
# File 'lib/apstrings/logger.rb', line 9

def self.warn(message)
	puts "WARNING: #{message}".yellow			
end