module Brick::Mixin::Colors
Constants
- COLORS
Public Instance Methods
color_generator(str)
click to toggle source
# File lib/brick/mixin/colors.rb, line 15 def color_generator str if $stdout.isatty str=str.colorize(COLORS[@@current]) end str end
determine_color()
click to toggle source
# File lib/brick/mixin/colors.rb, line 9 def determine_color if $stdout.isatty @@current = (@@current+1)%COLORS.size end end