Skip to content

Instantly share code, notes, and snippets.

@al3x
Created October 19, 2009 22:36
Show Gist options
  • Save al3x/213787 to your computer and use it in GitHub Desktop.
Save al3x/213787 to your computer and use it in GitHub Desktop.
$ irb
>> 1.class
=> Fixnum
>> 1.respond_to?(:dup)
=> true
>> 1.dup
TypeError: can't dup Fixnum
from (irb):3:in `dup'
from (irb):3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment