Class: Mocha::ImpersonatingAnyInstanceName
Instance Method Summary collapse
-
#initialize(klass) ⇒ ImpersonatingAnyInstanceName
constructor
A new instance of ImpersonatingAnyInstanceName.
- #mocha_inspect ⇒ Object
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_inspect ⇒ Object
21 22 23 |
# File 'lib/mocha/names.rb', line 21 def mocha_inspect "#<AnyInstance:#{@klass.mocha_inspect}>" end |