Sha256: 0fb4cd6ef9de229262346d0e382ba8e2129e062196f283f17800da845ead0f5a
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 Bytes
Contents
# frozen_string_literal: true module EzClient::CheckOptions def self.call(options, allowed_keys) if (options.keys - allowed_keys).any? raise ArgumentError, "Unrecognized options: #{options.keys.map(&:inspect).join(", ")}" end options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ezclient-0.10.0 | lib/ezclient/check_options.rb |