Sha256: 814af16669038215f2dc27dfa49c2da202d902d53c5aa3d67edaaae9bcfb8a83
Contents?: true
Size: 186 Bytes
Versions: 3
Compression:
Stored size: 186 Bytes
Contents
module Hash::Reorder refine Hash do def reorder(*order) slice(*order).merge except(*order) end def reorder!(*order) replace(reorder(*order)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
address_concern-3.0.0 | lib/core_extensions/hash/reorder.rb |
address_concern-2.1.1 | lib/core_extensions/hash/reorder.rb |
address_concern-2.1.0 | lib/core_extensions/hash/reorder.rb |