class Mocha::DefaultName

Public Class Methods

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

Public Instance Methods

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