# File lib/mocha/expectation_list.rb, line 9
9: def add(expectation)
10: @expectations.unshift(expectation)
11: expectation
12: end
# File lib/mocha/expectation_list.rb, line 38
38: def length
39: @expectations.length
40: end
# File lib/mocha/expectation_list.rb, line 18
18: def match(method_name, *arguments)
19: matching_expectations(method_name, *arguments).first
20: end
# File lib/mocha/expectation_list.rb, line 22
22: def match_allowing_invocation(method_name, *arguments)
23: matching_expectations(method_name, *arguments).detect { |e| e.invocations_allowed? }
24: end
# File lib/mocha/expectation_list.rb, line 14
14: def matches_method?(method_name)
15: @expectations.any? { |expectation| expectation.matches_method?(method_name) }
16: end
# File lib/mocha/expectation_list.rb, line 30
30: def to_a
31: @expectations
32: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.