lib/cistern/hash.rb in cistern-1.0.1.pre4 vs lib/cistern/hash.rb in cistern-1.0.1.pre5
- old
+ new
@@ -9,10 +9,10 @@
Cistern::Hash.except!(hash.dup, *keys)
end
# Replaces the hash without the given keys.
def self.except!(hash, *keys)
- hash.keys.each { |key| hash.delete(key) }
+ keys.each { |key| hash.delete(key) }
hash
end
def self.stringify_keys(object)
case object