Class: Preek::Output
- Inherits:
-
Thor::Shell::Color
- Object
- Thor::Shell::Color
- Preek::Output
- Defined in:
- lib/preek/output.rb
Direct Known Subclasses
Instance Method Summary collapse
- #blue(*args) ⇒ Object
- #green(*args) ⇒ Object
- #print_line ⇒ Object
- #red(*args) ⇒ Object
- #status(*args) ⇒ Object
Instance Method Details
#blue(*args) ⇒ Object
12 13 14 |
# File 'lib/preek/output.rb', line 12 def blue(*args) status *args, :blue end |
#green(*args) ⇒ Object
16 17 18 |
# File 'lib/preek/output.rb', line 16 def green(*args) status *args, :green end |
#print_line ⇒ Object
8 9 10 |
# File 'lib/preek/output.rb', line 8 def print_line say "\n\t#{'-'*60}\n\n" end |
#red(*args) ⇒ Object
20 21 22 |
# File 'lib/preek/output.rb', line 20 def red(*args) status *args, :red end |
#status(*args) ⇒ Object
4 5 6 |
# File 'lib/preek/output.rb', line 4 def status(*args) say_status *args end |