class Hash

Public Instance Methods

slice(*keys) click to toggle source
# File lib/rapel.rb, line 11
def slice(*keys)
  keys.reduce({}) {|h, k| h[k] = self[k]}
end