on_stubbing (Mocha::Mockery)

         # File lib/mocha/mockery.rb, line 89
     89:     def on_stubbing(object, method)
     90:       method = RUBY_VERSION < '1.9' ? method.to_s : method.to_sym
     91:       unless Mocha::Configuration.allow?(:stubbing_non_existent_method)
     92:         unless object.method_exists?(method, include_public_methods = true)
     93:           on_stubbing_non_existent_method(object, method)
     94:         end
     95:       end
     96:       unless Mocha::Configuration.allow?(:stubbing_non_public_method)
     97:         if object.method_exists?(method, include_public_methods = false)
     98:           on_stubbing_non_public_method(object, method)
     99:         end
    100:       end
    101:       unless Mocha::Configuration.allow?(:stubbing_method_on_non_mock_object)
    102:         on_stubbing_method_on_non_mock_object(object, method)
    103:       end
    104:     end