class Hash

Public Instance Methods

&(other) click to toggle source
# File lib/core_ext/hash.rb, line 3
def &(other)
  Hash[(self.keys & other.keys).zip(other.values_at(*(self.keys & other.keys)))]
end