method
visibility
1.1.12 -
Show latest stable
- Class:
Spec::Mocks::Proxy
visibility(sym)private
No documentation available.
# File lib/spec/mocks/proxy.rb, line 153
def visibility(sym)
if Mock === @target
'public'
elsif target_metaclass.private_method_defined?(sym)
'private'
elsif target_metaclass.protected_method_defined?(sym)
'protected'
else
'public'
end
end