class Hash

Public Instance Methods

slice(*keys) click to toggle source
# File lib/feed2email/core_ext.rb, line 6
def slice(*keys)
  Hash[values_at(*keys).each_with_index.map {|v, i| [keys[i], v] }]
end