Created
May 19, 2014 22:11
-
-
Save rgrove/587ee3c006104cb1804b to your computer and use it in GitHub Desktop.
Ruby is a jerk.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> false.respond_to?(:dup) | |
=> true | |
irb(main):002:0> false.dup | |
TypeError: can't dup FalseClass | |
from (irb):2:in `dup' | |
from (irb):2 | |
from /Users/rgrove/.rbenv/versions/2.1.0/bin/irb:11:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment