# File lib/flexmock.rb, line 240 240: def call(*args) 241: exp = @expectations.find { |e| e.match_args(args) && e.eligible? } || 242: @expectations.find { |e| e.match_args(args) } || 243: @expectations.find { |e| e.expected_args.nil? } 244: FlexMock.check("no matching handler found for " + 245: FlexMock.format_args(@sym, args)) { ! exp.nil? } 246: exp.verify_call(*args) 247: end