Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created January 6, 2012 00:02
Show Gist options
  • Save havenwood/1568086 to your computer and use it in GitHub Desktop.
Save havenwood/1568086 to your computer and use it in GitHub Desktop.
Germans Got Commas and Periods Confused
def scrub character
results.delete("#{character}").to_i
end
case results[-3]
when "."
scrub ","
when ","
scrub "."
else
scrub ".,"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment