Sha256: 0f48f12a3dfbbf2af3dae6d993262f12831e4eb07a9605ecf350412dee244e81

Contents?: true

Size: 151 Bytes

Versions: 27

Compression:

Stored size: 151 Bytes

Contents

class Hash
  # Returns a hash excluding the keys passed in.
  def without(*keys)
    reject do |key, value|
      keys.include?(key)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
volt-0.9.6 lib/volt/extra_core/hash.rb
volt-0.9.6.pre3 lib/volt/extra_core/hash.rb
volt-0.9.6.pre2 lib/volt/extra_core/hash.rb
volt-0.9.6.pre1 lib/volt/extra_core/hash.rb
volt-0.9.5 lib/volt/extra_core/hash.rb
volt-0.9.5.pre12 lib/volt/extra_core/hash.rb
volt-0.9.5.pre11 lib/volt/extra_core/hash.rb
volt-0.9.5.pre9 lib/volt/extra_core/hash.rb
volt-0.9.5.pre8 lib/volt/extra_core/hash.rb
volt-0.9.5.pre7 lib/volt/extra_core/hash.rb
volt-0.9.5.pre6 lib/volt/extra_core/hash.rb
volt-0.9.5.pre5 lib/volt/extra_core/hash.rb
volt-0.9.5.pre4 lib/volt/extra_core/hash.rb
volt-0.9.5.pre3 lib/volt/extra_core/hash.rb
volt-0.9.5.pre2 lib/volt/extra_core/hash.rb
volt-0.9.5.pre1 lib/volt/extra_core/hash.rb
volt-0.9.4 lib/volt/extra_core/hash.rb
volt-0.9.4.pre5 lib/volt/extra_core/hash.rb
volt-0.9.4.pre3 lib/volt/extra_core/hash.rb
volt-0.9.4.pre2 lib/volt/extra_core/hash.rb