Sha256: 5b7340e616b57024c765ec8788e1103395ff5acb5ea90645fe23fd166bfc9dd9

Contents?: true

Size: 109 Bytes

Versions: 2

Compression:

Stored size: 109 Bytes

Contents

class Hash
  def &(other)
    Hash[(keys & other.keys).zip(other.values_at(*(keys & other.keys)))]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record-mti-0.4.0.pre.2 lib/core_ext/hash.rb
active_record-mti-0.4.0.pre.1 lib/core_ext/hash.rb