Class: Mocha::ImpersonatingAnyInstanceName

Inherits:
Object
  • Object
show all
Defined in:
lib/mocha/names.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ ImpersonatingAnyInstanceName

Returns a new instance of ImpersonatingAnyInstanceName.



17
18
19
# File 'lib/mocha/names.rb', line 17

def initialize(klass)
  @klass = klass
end

Instance Method Details

#mocha_inspectObject



21
22
23
# File 'lib/mocha/names.rb', line 21

def mocha_inspect
  "#<AnyInstance:#{@klass.mocha_inspect}>"
end