Sha256: 59f59cd88074900ad32ad7c143fbb632d97f7e204b4e1113052bfc70fae8be05

Contents?: true

Size: 155 Bytes

Versions: 1

Compression:

Stored size: 155 Bytes

Contents

class Hash
  def force!(*keys)
    keys.each { |key| self[key] ||= '' }
  end

  def force_and_slice!(*keys)
    force!(*keys)
    slice!(*keys)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
junk_drawer-0.0.4 lib/core_extensions/hash.rb