Method: Bogo::Ui#color

Defined in:
lib/bogo/ui.rb

#color(string, *args) ⇒ String

Colorize string

Parameters:

  • string (String)
  • args (Symbol)

Returns:

  • (String)


131
132
133
134
135
136
137
# File 'lib/bogo/ui.rb', line 131

def color(string, *args)
  if(colorize)
    Paint[string, *args]
  else
    string
  end
end