Method: Module#method_visibility
- Defined in:
- lib/dbus/core_ext/module/redefine_method.rb
#method_visibility(method) ⇒ Object
:nodoc:
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/dbus/core_ext/module/redefine_method.rb', line 41 def method_visibility(method) # :nodoc: case when private_method_defined?(method) :private when protected_method_defined?(method) :protected else :public end end |