Object
# File lib/mocha/central.rb, line 7 7: def initialize 8: self.stubba_methods = [] 9: end
# File lib/mocha/central.rb, line 11 11: def stub(method) 12: unless stubba_methods.include?(method) 13: method.stub 14: stubba_methods.push(method) 15: end 16: end
# File lib/mocha/central.rb, line 18 18: def unstub_all 19: while stubba_methods.length > 0 20: method = stubba_methods.pop 21: method.unstub 22: end 23: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.