Class: Painter
Class Method Summary collapse
Class Method Details
.attention(text) ⇒ Object
13 14 15 |
# File 'lib/painter.rb', line 13 def attention text print "\033[33m#{text}\033[0m" end |
.correct(text) ⇒ Object
5 6 7 |
# File 'lib/painter.rb', line 5 def correct text print "\033[32m#{text}\033[0m" end |
.error(text) ⇒ Object
9 10 11 |
# File 'lib/painter.rb', line 9 def error text print "\033[31m#{text}\033[0m" end |