Created
October 28, 2008 11:08
-
-
Save methodmissing/20349 to your computer and use it in GitHub Desktop.
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 Class | |
def publicize_methods! | |
hidden_methods = self.private_instance_methods + self.protected_instance_methods | |
self.class_eval { public *hidden_methods } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment