class Object
Public Instance Methods
color(str)
click to toggle source
# File lib/colorize/colorize.rb, line 46 def color(str) temp = str.to_s.scan(/[a-z]/).join str = str.to_s case temp when 'unrated' then str.unrated when 'bronze' then str.bronze when 'silver' then str.silver when 'gold' then str.gold when 'platinum' then str.platinum when 'diamond' then str.diamond when 'ruby' then str.ruby end end