Sha256: b8871d3cc6f46cb37eaf3ed2d6cd045a3dba830805c4ec8f9a60fc46488762d1
Contents?: true
Size: 180 Bytes
Versions: 73
Compression:
Stored size: 180 Bytes
Contents
unless Hash.method_defined? :rassoc class Hash def rassoc(value) k = key(value) v = fetch(k){return nil} [k, fetch(k)] if k || v == value end end end
Version data entries
73 entries across 73 versions & 5 rubygems