Sha256: 65cf5fbae9109cabe7d15e02757b9c50c173d37323d33aa52675b57d54c80abe

Contents?: true

Size: 112 Bytes

Versions: 16

Compression:

Stored size: 112 Bytes

Contents

class Hash

  # Remove nil and empty keys.
  def compact
    delete_if { |key, value| value.blank? }
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
typus-3.0.2 lib/support/hash.rb
typus-3.0.1 lib/support/hash.rb
typus-3.0.0 lib/support/hash.rb
typus-1.0.0.pre13 lib/support/hash.rb
typus-1.0.0.pre12 lib/support/hash.rb
typus-1.0.0.pre11 lib/support/hash.rb
typus-1.0.0.pre10 lib/support/hash.rb
typus-1.0.0.pre9 lib/support/hash.rb
typus-1.0.0.pre8 lib/support/hash.rb
typus-1.0.0.pre7 lib/support/hash.rb
typus-1.0.0.pre6 lib/support/hash.rb
typus-1.0.0.pre5 lib/support/hash.rb
typus-1.0.0.pre4 lib/support/hash.rb
typus-1.0.0.pre3 lib/support/hash.rb
typus-1.0.0.pre2 lib/support/hash.rb
typus-1.0.0.pre lib/support/hash.rb