Created
July 14, 2015 18:47
-
-
Save Ravenstine/528c7b37c2dc977db129 to your computer and use it in GitHub Desktop.
Null Object
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
missing_object = Module.new{def self.present?; false; end; def self.method_missing(*args); nil; end} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment