Sha256: 78e223530517a5eda99e313c10f198908bd4159a8993db278ce67144ac71f2c1

Contents?: true

Size: 221 Bytes

Versions: 36

Compression:

Stored size: 221 Bytes

Contents

module Mocha
  class ThrownObject
    def initialize(tag, value = nil)
      @tag = tag
      @value = value
    end

    def mocha_inspect
      "threw (#{@tag.mocha_inspect}, #{@value.mocha_inspect})"
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

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