Class: Mocha::Name
Instance Method Summary collapse
-
#initialize(name) ⇒ Name
constructor
A new instance of Name.
- #mocha_inspect ⇒ Object
Constructor Details
#initialize(name) ⇒ Name
Returns a new instance of Name.
29 30 31 |
# File 'lib/mocha/names.rb', line 29 def initialize(name) @name = name end |
Instance Method Details
#mocha_inspect ⇒ Object
33 34 35 |
# File 'lib/mocha/names.rb', line 33 def mocha_inspect "#<Mock:#{@name}>" end |