Sha256: 0c0dbe2f4e89826492a88f9ee1fd0cdc428e3c5db551257a4e28b80427acabdc
Contents?: true
Size: 297 Bytes
Versions: 20
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true module EzClient::CheckOptions def self.call(options, allowed_keys) unknown_keys = options.keys - allowed_keys if unknown_keys.any? raise ArgumentError, "Unrecognized options: #{unknown_keys.map(&:inspect).join(", ")}" end options end end
Version data entries
20 entries across 20 versions & 1 rubygems