Skip to content

Instantly share code, notes, and snippets.

@theaboutbox
Created May 1, 2009 16:04
Show Gist options
  • Select an option

  • Save theaboutbox/105107 to your computer and use it in GitHub Desktop.

Select an option

Save theaboutbox/105107 to your computer and use it in GitHub Desktop.
>> Integer("1\n")
=> 1
>> Integer("0\n")
ArgumentError: invalid value for Integer: "0\n"
from (irb):13:in `Integer'
from (irb):13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment