class Colorlib::ColorBuilder

Public Instance Methods

black(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 14
def black(text);   color text, :black;   end
blue(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 12
def blue(text);    color text, :blue;    end
color(string, color) click to toggle source
# File lib/colorlib/color_builder.rb, line 6
def color(string, color)
  self << string.color(color)
end
green(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 11
def green(text);   color text, :green;   end
red(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 10
def red(text);     color text, :red;     end
white(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 15
def white(text);   color text, :white;   end
yellow(text) click to toggle source
# File lib/colorlib/color_builder.rb, line 13
def yellow(text);  color text, :yellow;  end