daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top