Sha256: e3bfceee160032edddbc42a50e825c4bc185fe4418f8e235d831f912486d5a4d

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

# encoding: utf-8

module Piglet
  module Relation
    class Union # :nodoc:
      include Relation
    
      def initialize(relations, interpreter)
        @sources, @interpreter = relations, interpreter
      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

1 entries across 1 versions & 1 rubygems

Version Path
piglet-0.3.0 lib/piglet/relation/union.rb