on_stubbing_non_public_method (Mocha::Mockery)

         # File lib/mocha/mockery.rb, line 100
    100:     def on_stubbing_non_public_method(object, symbol)
    101:       if Mocha::Configuration.prevent?(:stubbing_non_public_method)
    102:         raise StubbingError.new("stubbing non-public method: #{object.mocha_inspect}.#{symbol}", caller)
    103:       end
    104:       if Mocha::Configuration.warn_when?(:stubbing_non_public_method)
    105:         logger.warn "stubbing non-public method: #{object.mocha_inspect}.#{symbol}"
    106:       end
    107:     end