Sha256: 373bb2c834e2af56a61bdeb4f98efb1b16c44e1f0054fdea1c089e0df69cd1eb
Contents?: true
Size: 257 Bytes
Versions: 11
Compression:
Stored size: 257 Bytes
Contents
class Hash def except(*keys) if keys.size > 4 && size > 4 # index if O(m*n) is big h = {} keys.each { |key| h[key] = true } keys = h end reject { |key, _value| keys.include? key} end end unless Hash.method_defined? :except
Version data entries
11 entries across 11 versions & 1 rubygems