Class: Mocha::Name

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

Instance Method Summary collapse

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_inspectObject



33
34
35
# File 'lib/mocha/names.rb', line 33

def mocha_inspect
  "#<Mock:#{@name}>"
end