Closed krainboltgreene closed 10 years ago
Any ideas about how this should be handled?
We can have some kind of trigger that fires when it locates a pattern similar to what the kid has written, which would strip off the comma and return a valid integer value. Now, where to put this, I'm not sure.
def normalize_fixnum("number") valid_number = number.split(',').join.to_i end
We could always push a class along with the ask() method?
ask("How much money do you make?", Integer)
Not sure if that is easy or not for kids.
Closing do to old age. Please retest on latest KidsRuby version and if problem persists, reopen the issue with details.
It assumed the thing was a string.