1 module CompositePrimaryKeys
\r
5 module ArrayExtension
\r
6 def to_composite_keys
\r
7 CompositeKeys.new(self)
\r
10 def to_composite_ids
\r
11 CompositeIds.new(self)
\r
15 class CompositeArray < Array
\r
21 class CompositeKeys < CompositeArray
\r
25 class CompositeIds < CompositeArray
\r
30 Array.send(:include, CompositePrimaryKeys::ArrayExtension)
\r