Sha256: 05f2a9c24b9c40a8c43e5ce19b936c2ea97e9a29791f5d73a4d9a6c817b03478
Contents?: true
Size: 287 Bytes
Versions: 6
Compression:
Stored size: 287 Bytes
Contents
# frozen_string_literal: true require 'active_support/core_ext/hash/except' class Hash def except_keys(keys_enum) return dup.except!(keys_enum) unless keys_enum.respond_to?(:each) clone = dup keys_enum.each do |key| clone.except!(key) end clone end end
Version data entries
6 entries across 6 versions & 1 rubygems