module TrickBag::CoreTypes

Public Instance Methods

clone_hash_except(source_hash, keys_to_delete) click to toggle source
# File lib/trick_bag/core_types/core_types.rb, line 6
def clone_hash_except(source_hash, keys_to_delete)
  new_hash = source_hash.clone
  keys_to_delete.each { |key| new_hash.delete(key) }
  new_hash
end