class Mocha::InstanceMethod

Public Instance Methods

method_exists?(method) click to toggle source
# File lib/mocha/instance_method.rb, line 7
def method_exists?(method)
  return true if stubbee.public_methods(false).include?(method)
  return true if stubbee.protected_methods(false).include?(method)
  return true if stubbee.private_methods(false).include?(method)
  return false
end