Class: StockQuoteCLI::TextHelpers

Inherits:
Object
  • Object
show all
Defined in:
lib/stock_quote_cli.rb

Class Method Summary collapse

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



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