Guest User

Untitled

a guest
May 16th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class Module
  2. def instance_method_visibility(method_name)
  3. case method_name.to_s
  4. when *public_instance_methods
  5. :public
  6. when *protected_instance_methods
  7. :protected
  8. when *private_instance_methods
  9. :private
  10. else
  11. nil
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment