class Object

Public Instance Methods

color(str) click to toggle source
# File lib/gamelib/ttt/colorize.rb, line 15
def  color(str)
  case str
  when 'O' then str.red
  when 'X' then str.blue
  else str
  end
end