Object
# File lib/mocha/central.rb, line 7 def initialize self.stubba_methods = [] end
# File lib/mocha/central.rb, line 11 def stub(method) unless stubba_methods.include?(method) method.stub stubba_methods.push(method) end end
# File lib/mocha/central.rb, line 18 def unstub_all while stubba_methods.length > 0 method = stubba_methods.pop method.unstub end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.