Sha256: 2dcb06fa7100a034ed0b681e851fa6a0bd9fb55577fcccf8273a3c0d5a6fbfbe
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
module Polyfill module V2_4 module Hash module Instance module CompactE module Method def compact! reject! { |_, v| v.nil? } end end if RUBY_VERSION < '2.4.0' refine ::Hash do include Method end def self.included(base) base.include Method end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.3.0 | lib/polyfill/v2_4/hash/instance/compact_e.rb |