Class: Genebrand::Logger
- Inherits:
-
Object
- Object
- Genebrand::Logger
- Defined in:
- lib/genebrand/logger.rb
Class Method Summary collapse
- .error(text) ⇒ Object
- .hint(text) ⇒ Object
- .info(text) ⇒ Object
- .log(text) ⇒ Object
- .warning(text) ⇒ Object
Class Method Details
.error(text) ⇒ Object
3 4 5 |
# File 'lib/genebrand/logger.rb', line 3 def self.error(text) puts "ERROR: #{text}".red end |
.hint(text) ⇒ Object
15 16 17 |
# File 'lib/genebrand/logger.rb', line 15 def self.hint(text) puts text.bold end |
.info(text) ⇒ Object
11 12 13 |
# File 'lib/genebrand/logger.rb', line 11 def self.info(text) puts text.bold.cyan end |
.log(text) ⇒ Object
19 20 21 |
# File 'lib/genebrand/logger.rb', line 19 def self.log(text) puts text end |
.warning(text) ⇒ Object
7 8 9 |
# File 'lib/genebrand/logger.rb', line 7 def self.warning(text) puts "WARNING: #{text}".yellow end |