Sha256: 71521d71c66a0daef903be03b276c7fdd0c3662666134cd0fde4347001823958

Contents?: true

Size: 212 Bytes

Versions: 20

Compression:

Stored size: 212 Bytes

Contents

module Timber
  module Util
    # @private
    module Hash
      extend self

      def compact(hash)
        hash.select do |k, v|
          v != nil && v != {} && v != []
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
timber-1.1.4 lib/timber/util/hash.rb
timber-1.1.3 lib/timber/util/hash.rb
timber-1.1.2 lib/timber/util/hash.rb
timber-1.1.1 lib/timber/util/hash.rb
timber-1.1.0 lib/timber/util/hash.rb
timber-1.0.13 lib/timber/util/hash.rb
timber-1.0.12 lib/timber/util/hash.rb
timber-1.0.11 lib/timber/util/hash.rb
timber-1.0.10 lib/timber/util/hash.rb
timber-1.0.9 lib/timber/util/hash.rb
timber-1.0.8 lib/timber/util/hash.rb
timber-1.0.7 lib/timber/util/hash.rb
timber-1.0.6 lib/timber/util/hash.rb
timber-1.0.5 lib/timber/util/hash.rb
timber-1.0.4 lib/timber/util/hash.rb
timber-1.0.3 lib/timber/util/hash.rb
timberio-1.0.3 lib/timber/util/hash.rb
timberio-1.0.2 lib/timber/util/hash.rb
timberio-1.0.1 lib/timber/util/hash.rb
timberio-1.0.0 lib/timber/util/hash.rb