Sha256: 8ca729e7507949fda8de27127daf932fe291f183785ca3b0bf01466e1243352b

Contents?: true

Size: 254 Bytes

Versions: 23

Compression:

Stored size: 254 Bytes

Contents

require 'active_support'
require 'active_support/core_ext/hash'

module FeCoreExt::CoreExt
end

module FeCoreExt::CoreExt::Hash
  def clean
    reject { |_, value| value.nil? || value.blank? }
  end
end

class Hash
  include FeCoreExt::CoreExt::Hash
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fe_core_ext-0.1.20 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.19 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.18 lib/fe_core_ext/core_ext/hash.rb