Sha256: b51f2de028687008bfeca1240bb54d4021305003af31c42bf9276e56304357f6
Contents?: true
Size: 190 Bytes
Versions: 100
Compression:
Stored size: 190 Bytes
Contents
# from facets (http://facets.rubyforge.org) class Hash def slice(*keep_keys) h = {} keep_keys.each { |key| h[key] = fetch(key) } h end end unless Hash.new.respond_to?(:slice)
Version data entries
100 entries across 70 versions & 6 rubygems