Module: CTTExtensions
- Included in:
- Object
- Defined in:
- lib/cli/ctt_extensions.rb
Instance Method Summary collapse
- #cyan(message) ⇒ Object
- #err(message) ⇒ Object
- #green(message) ⇒ Object
- #nl ⇒ Object
- #red(message) ⇒ Object
- #say(message, color = nil, sep = "\n") ⇒ Object
- #yellow(message) ⇒ Object
Instance Method Details
#cyan(message) ⇒ Object
29 30 31 |
# File 'lib/cli/ctt_extensions.rb', line 29 def cyan() Paint[, :cyan] end |
#err(message) ⇒ Object
13 14 15 |
# File 'lib/cli/ctt_extensions.rb', line 13 def err() raise CTT::Cli::CliError, end |
#green(message) ⇒ Object
25 26 27 |
# File 'lib/cli/ctt_extensions.rb', line 25 def green() Paint[, :green] end |
#nl ⇒ Object
9 10 11 |
# File 'lib/cli/ctt_extensions.rb', line 9 def nl puts "" end |
#red(message) ⇒ Object
17 18 19 |
# File 'lib/cli/ctt_extensions.rb', line 17 def red() Paint[, :red] end |
#say(message, color = nil, sep = "\n") ⇒ Object
4 5 6 7 |
# File 'lib/cli/ctt_extensions.rb', line 4 def say(, color = nil, sep = "\n") msg = puts Paint[msg, color] end |
#yellow(message) ⇒ Object
21 22 23 |
# File 'lib/cli/ctt_extensions.rb', line 21 def yellow() Paint[, :yellow] end |