Object
@private
# File lib/shoulda/matchers/doublespeak/stub_implementation.rb, line 8 def self.create new end
# File lib/shoulda/matchers/doublespeak/stub_implementation.rb, line 12 def initialize @implementation = proc { nil } end
# File lib/shoulda/matchers/doublespeak/stub_implementation.rb, line 24 def call(double, object, args, block) double.record_call(args, block) implementation.call(object, args, block) end
# File lib/shoulda/matchers/doublespeak/stub_implementation.rb, line 16 def returns(value = nil, &block) if block @implementation = block else @implementation = proc { value } end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.