Sha256: 0cc1195f242af42521bc049e4120325236cfd69c34d36b594cfe84d2be843408

Contents?: true

Size: 297 Bytes

Versions: 22

Compression:

Stored size: 297 Bytes

Contents

require 'mocha/stubbed_method'

module Mocha
  class InstanceMethod < StubbedMethod
    private

    def mock_owner
      stubbee
    end

    def stubbee_method(method_name)
      stubbee._method(method_name)
    end

    def original_method_owner
      stubbee.singleton_class
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mocha-2.6.0 lib/mocha/instance_method.rb
mocha-2.5.0 lib/mocha/instance_method.rb
mocha-2.4.5 lib/mocha/instance_method.rb
mocha-2.4.4 lib/mocha/instance_method.rb
mocha-2.4.3 lib/mocha/instance_method.rb
mocha-2.4.2 lib/mocha/instance_method.rb
mocha-2.4.1 lib/mocha/instance_method.rb
mocha-2.4.0 lib/mocha/instance_method.rb
mocha-2.2.0 lib/mocha/instance_method.rb
mocha-2.1.0 lib/mocha/instance_method.rb
mocha-2.0.4 lib/mocha/instance_method.rb
mocha-2.0.3 lib/mocha/instance_method.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/mocha-2.0.2/lib/mocha/instance_method.rb
mocha-2.0.2 lib/mocha/instance_method.rb
mocha-1.16.1 lib/mocha/instance_method.rb
mocha-1.15.1 lib/mocha/instance_method.rb
mocha-2.0.1 lib/mocha/instance_method.rb
mocha-2.0.0 lib/mocha/instance_method.rb
mocha-1.16.0 lib/mocha/instance_method.rb
mocha-2.0.0.alpha.1 lib/mocha/instance_method.rb