class Hash
Public Instance Methods
slice(*keys)
click to toggle source
# File lib/mk_repo/monkey_patch.rb, line 2 def slice(*keys) Hash[keys.zip(self.values_at(*keys))] end
# File lib/mk_repo/monkey_patch.rb, line 2 def slice(*keys) Hash[keys.zip(self.values_at(*keys))] end