StringCalculator kata in ruby