Parent

Class/Module Index [+]

Quicksearch

Mocha::DefaultName

Public Class Methods

new(mock) click to toggle source
# File lib/mocha/names.rb, line 41
def initialize(mock)
  @mock = mock
end

Public Instance Methods

mocha_inspect() click to toggle source
# File lib/mocha/names.rb, line 45
def mocha_inspect
  address = @mock.__id__ * 2
  address += 0x100000000 if address < 0
  "#<Mock:0x#{'%x' % address}>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.