Sha256: c531a96b38e267fb0d797e95882d8a357d7f2093d3d84fd967bb9bf1d305a54f
Contents?: true
Size: 352 Bytes
Versions: 4
Compression:
Stored size: 352 Bytes
Contents
module Piglet module Relation class Union # :nodoc: include Relation def initialize(*relations) @sources = [relations].flatten end def to_s "UNION #{source_aliases.join(', ')}" end private def source_aliases @sources.map { |s| s.alias } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
piglet-0.2.4 | lib/piglet/relation/union.rb |
piglet-0.2.3 | lib/piglet/relation/union.rb |
piglet-0.2.2 | lib/piglet/relation/union.rb |
piglet-0.2.0 | lib/piglet/relation/union.rb |