class Mocha::ThrownObject

Public Class Methods

new(tag, value = nil) click to toggle source
# File lib/mocha/thrown_object.rb, line 3
def initialize(tag, value = nil)
  @tag = tag
  @value = value
end

Public Instance Methods

mocha_inspect() click to toggle source
# File lib/mocha/thrown_object.rb, line 8
def mocha_inspect
  "threw (#{@tag.mocha_inspect}, #{@value.mocha_inspect})"
end