| Module | ModuleExtensions::InstanceMethodVisibility |
| In: |
lib/module_extensions/instance_method_visibility.rb
|
# File lib/module_extensions/instance_method_visibility.rb, line 10 def instance_method_visibility(name) if private_method_defined?(name) :private elsif protected_method_defined?(name) :protected elsif public_method_defined?(name) :public else raise(NoMethodError, "`#{name}' - not an instance method of `#{self.name}'") end end