Sha256: 0626871680a6f5e7ac5ed0e1d17da9f8442d24bf2b1fac2278b2224a3cc632e9
Contents?: true
Size: 193 Bytes
Versions: 34
Compression:
Stored size: 193 Bytes
Contents
# frozen_string_literal: true module DeepCover module Tools::Slice def slice(hash, *keys) keys.each_with_object({}) { |k, h| h[k] = hash[k] if hash.has_key?(k) } end end end
Version data entries
34 entries across 34 versions & 2 rubygems