method
visibility
visibility(sym)
private
Hide source
# 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