Class: Plexify::Logger
- Inherits:
-
Object
- Object
- Plexify::Logger
- Defined in:
- lib/plexify/logger.rb
Overview
Logger class
Class Method Summary collapse
-
.error(content) ⇒ Object
print errors in red.
-
.info(content) ⇒ Object
print informations.
-
.success(content) ⇒ Object
print success in green.
Class Method Details
.error(content) ⇒ Object
print errors in red
15 16 17 |
# File 'lib/plexify/logger.rb', line 15 def self.error(content) print content.colorize(:red) end |
.info(content) ⇒ Object
print informations
5 6 7 |
# File 'lib/plexify/logger.rb', line 5 def self.info(content) print content end |
.success(content) ⇒ Object
print success in green
10 11 12 |
# File 'lib/plexify/logger.rb', line 10 def self.success(content) print content.colorize(:green) end |