A recording that represents a method call it contains argument variations that can be matched too
Initializes a new instance of a method call recording every time a method gets called in an isolated object this gets stored in the method call recorder It expects a method_name at the very least.
# File lib/caricature/method_call_recorder.rb, line 56 def initialize(method_name, count=0) @method_name = method_name @count = count @variations = [] end
add an argument variation
# File lib/caricature/method_call_recorder.rb, line 73 def add_argument_variation(args, block) variation = find_argument_variations args @variations << ArgumentRecording.new(args, @variations.size+1, block) if variation == [] end
add args
# File lib/caricature/method_call_recorder.rb, line 63 def args @variations end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.