class RSpec::Mocks::ErrorGenerator
def intro
def intro if @name "#{@declared_as} #{@name.inspect}" elsif TestDouble === @target @declared_as elsif Class === @target "<#{@target.inspect} (class)>" elsif @target @target else "nil" end end
def intro if @name "#{@declared_as} #{@name.inspect}" elsif TestDouble === @target @declared_as elsif Class === @target "<#{@target.inspect} (class)>" elsif @target @target else "nil" end end