Class: StockQuoteCLI::TextHelpers
- Inherits:
-
Object
- Object
- StockQuoteCLI::TextHelpers
- Defined in:
- lib/stock_quote_cli.rb
Class Method Summary collapse
- .green(str) ⇒ Object
-
.red(str) ⇒ Object
color methods from github.com/pierot/stockery/blob/master/lib/stockery.rb.
- .yellow(str) ⇒ Object
Class Method Details
.green(str) ⇒ Object
8 |
# File 'lib/stock_quote_cli.rb', line 8 def green(str); color(str, "\e[1m\e[32m"); end |
.red(str) ⇒ Object
color methods from github.com/pierot/stockery/blob/master/lib/stockery.rb
7 |
# File 'lib/stock_quote_cli.rb', line 7 def red(str); color(str, "\e[31m"); end |
.yellow(str) ⇒ Object
9 |
# File 'lib/stock_quote_cli.rb', line 9 def yellow(str); color(str, "\e[0;33m"); end |