Sha256: 23790a2e610020f7f07147cca0b97c0985670c19d52ba1bae0def5943461296c
Contents?: true
Size: 489 Bytes
Versions: 16
Compression:
Stored size: 489 Bytes
Contents
module CompositePrimaryKeys ID_SEP = ',' ID_SET_SEP = ';' module ArrayExtension def to_composite_keys CompositeKeys.new(self) end def to_composite_ids CompositeIds.new(self) end end class CompositeArray < Array def to_s join(ID_SEP) end end class CompositeKeys < CompositeArray end class CompositeIds < CompositeArray end end Array.send(:include, CompositePrimaryKeys::ArrayExtension)
Version data entries
16 entries across 16 versions & 5 rubygems