# File lib/rspec/mocks/message_expectation.rb, line 294 def with(*args, &block) @implementation = block if block_given? unless args.empty? @argument_list_matcher = ArgumentListMatcher.new(*args, &block) self end