Ruby riddle