Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created October 28, 2008 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methodmissing/20349 to your computer and use it in GitHub Desktop.
Save methodmissing/20349 to your computer and use it in GitHub Desktop.
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