class String

extend String for colors

Constants

COLORS

Public Instance Methods

color( col ) click to toggle source
# File lib/pinfo-rails.rb, line 20
def color( col )
  "\e[#{COLORS[col]}m#{self}\e[0m"
end