slapping in ruby