Sha256: eddb18409166e313b9ce3661c22259ced69ef13357141f7073473db129f8d225

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

module Polyfill
  module V2_4
    module Hash
      module Instance
        module CompactE
          module Method
            def compact!
              reject! { |_, v| v.nil? }
            end
          end

          refine ::Hash do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_4/hash/instance/compact_e.rb
polyfill-0.5.0 lib/polyfill/v2_4/hash/instance/compact_e.rb
polyfill-0.4.0 lib/polyfill/v2_4/hash/instance/compact_e.rb