Sha256: 1191be9b67af4202f0ea64eb4413d06b0d89a1b5a3c0f33a1f37c7b0898142d7

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

module Polyfill
  module V2_4
    module Hash
      module Compact
        module Method
          def compact
            reject { |_, v| v.nil? }
          end if RUBY_VERSION < '2.4.0'
        end

        if RUBY_VERSION < '2.4.0'
          refine ::Hash do
            include Method
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.2.0 lib/polyfill/v2_4/hash/compact.rb