Created
July 23, 2013 18:48
-
-
Save hughsaunders/6065050 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
>> [].foo | |
NoMethodError: undefined method `foo' for []:Array | |
from (irb):1 | |
>> def foo | |
>> return "bah" | |
>> end | |
=> nil | |
>> | |
?> [].foo | |
=> "bah" | |
>> "".foo | |
=> "bah" | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment