Skip to content

Instantly share code, notes, and snippets.

@jordaaash
Created June 9, 2014 10:03
Show Gist options
  • Save jordaaash/73c0183d864e6dfa83be to your computer and use it in GitHub Desktop.
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.
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