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.40 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.39 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.38 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.37 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.36 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.35 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.34 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.33 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.32 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.31 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.30 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.29 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.28 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.27 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.26 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.25 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.24 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.23 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.22 lib/fe_core_ext/core_ext/hash.rb
fe_core_ext-0.1.21 lib/fe_core_ext/core_ext/hash.rb