Created
June 9, 2014 10:03
-
-
Save jordaaash/73c0183d864e6dfa83be to your computer and use it in GitHub Desktop.
Thinking of silently swallowing null reference errors? You (and anyone whose Gemfile.lock ends up including your library) are gonna have a bad time.
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
class NilClass | |
def method_missing (*) | |
nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment