Sha256: e47d01a2bc217741b25d34015f25fa3a535520d47eeb908c9c0fc05e03651cb8
Contents?: true
Size: 637 Bytes
Versions: 6
Compression:
Stored size: 637 Bytes
Contents
module DataMapper module Adapters module Sql module Mappings class AssociationsSet include Enumerable def initialize @set = {} end def <<(association) @set[association.name] = association end def [](name) @set[name] end def each @set.each { |name, association| yield(association) } end end end # module Mappings end # module Sql end # module Adapters end # module DataMapper
Version data entries
6 entries across 6 versions & 1 rubygems