Sha256: 9499b7ea0201c3a0f69858d207457890259889c7490e24a048d94ee5e8bd3aee
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
module Piglet class Union # :nodoc: include Relation def initialize(*relations) @sources = relations end def to_s "UNION #{source_aliases.join(', ')}" end private def source_aliases @sources.map { |s| s.alias } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.1.1 | lib/piglet/union.rb |
piglet-0.1.0 | lib/piglet/union.rb |