class Hash

Public Instance Methods

slice(*keys) click to toggle source
# File lib/spreadsheet_import/hash_extension.rb, line 3
def slice(*keys)
  keys.each_with_object({}) do |k, hash|
    hash[k] = self[k] if has_key?(k)
  end
end