Skip to content

Instantly share code, notes, and snippets.

@basicavisual
Created August 1, 2018 00:58
Show Gist options
  • Save basicavisual/fc3e94bd48392f1b213e862d74dadec1 to your computer and use it in GitHub Desktop.
Save basicavisual/fc3e94bd48392f1b213e862d74dadec1 to your computer and use it in GitHub Desktop.
h = {"amount"=>"700", "dueDate"=>"2018-07-31"}
h.map{|a| a["amount"].to_f }
TypeError Exception: no implicit conversion of String into Integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment