Class: Vidar::Log
- Inherits:
-
Object
- Object
- Vidar::Log
- Defined in:
- lib/vidar/log.rb
Class Method Summary collapse
Class Method Details
.error(text, fill_with = "#") ⇒ Object
12 13 14 |
# File 'lib/vidar/log.rb', line 12 def error(text, fill_with = "#") puts ColorizedString["#{fill_with} #{text} ".ljust(124, fill_with)].colorize(:light_red) end |
.info(text, fill_with = "#") ⇒ Object
8 9 10 |
# File 'lib/vidar/log.rb', line 8 def info(text, fill_with = "#") puts ColorizedString["#{fill_with} #{text} ".ljust(124, fill_with)].colorize(:light_green) end |
.line ⇒ Object
4 5 6 |
# File 'lib/vidar/log.rb', line 4 def line puts "|#{'-' * 142}|" end |