Last active
August 29, 2015 14:03
-
-
Save TikiTDO/56d15c3e2584ab119def to your computer and use it in GitHub Desktop.
Blank ruby class
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
| class Blank | |
| core_methods = %w(__id__ __send__ object_id instance_eval methods class nil? is_a? | |
| respond_to?) | |
| instance_methods.each {|m| undef_method(m) unless core_methods.include?(m.to_s)} | |
| def respond_to_missing? | |
| true | |
| end | |
| def method_missing(name, *args, &block) | |
| puts name | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment