Parent

Files

Mocha::DefaultName

Public Class Methods

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

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.