Sha256: aa76098825b33cdc41852859907a8d7595ba5f8268a4780d8f4ec2068e22c46d

Contents?: true

Size: 227 Bytes

Versions: 32

Compression:

Stored size: 227 Bytes

Contents

module Mocha
  class Thrower
    def initialize(tag, object = nil)
      @tag = tag
      @object = object
    end

    def evaluate(invocation)
      invocation.threw(@tag, @object)
      throw @tag, @object
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

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