# File lib/webmock/request_pattern.rb, line 22 def with(options = {}, &block) raise ArgumentError.new('#with method invoked with no arguments. Either options hash or block must be specified.') if options.empty? && !block_given? assign_options(options) @with_block = block self end