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 (also: #separator)
- #red(*args) ⇒ Object
- #separated(&block) ⇒ Object
- #status(*args) ⇒ Object
Instance Method Details
#blue(*args) ⇒ Object
14 15 16 |
# File 'lib/preek/output.rb', line 14 def blue(*args) status *args, :blue end |
#green(*args) ⇒ Object
18 19 20 |
# File 'lib/preek/output.rb', line 18 def green(*args) status *args, :green end |
#print_line ⇒ Object Also known as: separator
8 9 10 |
# File 'lib/preek/output.rb', line 8 def print_line say "\n\t#{'-'*60}\n\n" end |
#red(*args) ⇒ Object
22 23 24 |
# File 'lib/preek/output.rb', line 22 def red(*args) status *args, :red end |
#separated(&block) ⇒ Object
26 27 28 29 30 |
# File 'lib/preek/output.rb', line 26 def separated(&block) print_line yield print_line end |
#status(*args) ⇒ Object
4 5 6 |
# File 'lib/preek/output.rb', line 4 def status(*args) say_status *args end |