Sha256: c540d4e69a9a8ad48c1a8677239fdb1e32326f55a06a36571d4efdc0bb165a15

Contents?: true

Size: 305 Bytes

Versions: 25

Compression:

Stored size: 305 Bytes

Contents

require 'mocha/stubbed_method'

module Mocha
  class AnyInstanceMethod < StubbedMethod
    private

    def mock_owner
      stubbee.any_instance
    end

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

    def original_method_owner
      stubbee
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
mocha-2.7.1 lib/mocha/any_instance_method.rb
mocha-2.7.0 lib/mocha/any_instance_method.rb
mocha-2.6.1 lib/mocha/any_instance_method.rb
mocha-2.6.0 lib/mocha/any_instance_method.rb
mocha-2.5.0 lib/mocha/any_instance_method.rb
mocha-2.4.5 lib/mocha/any_instance_method.rb
mocha-2.4.4 lib/mocha/any_instance_method.rb
mocha-2.4.3 lib/mocha/any_instance_method.rb
mocha-2.4.2 lib/mocha/any_instance_method.rb
mocha-2.4.1 lib/mocha/any_instance_method.rb
mocha-2.4.0 lib/mocha/any_instance_method.rb
mocha-2.2.0 lib/mocha/any_instance_method.rb
mocha-2.1.0 lib/mocha/any_instance_method.rb
mocha-2.0.4 lib/mocha/any_instance_method.rb
mocha-2.0.3 lib/mocha/any_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/any_instance_method.rb
mocha-2.0.2 lib/mocha/any_instance_method.rb
mocha-1.16.1 lib/mocha/any_instance_method.rb
mocha-1.15.1 lib/mocha/any_instance_method.rb
mocha-2.0.1 lib/mocha/any_instance_method.rb