Sha256: 33cc9ab6be824dcdea58fe5008b2007acdb1c9a8d233f51982d3a97db3acd1e3

Contents?: true

Size: 547 Bytes

Versions: 5

Compression:

Stored size: 547 Bytes

Contents

module Alf
  module Engine
    #
    # Concat tuples from multiple operands.
    #
    class Concat
      include Cog

      # @return [Array] operands to concatenate
      attr_reader :operands

      # Creates a Concat instance
      def initialize(operands, expr = nil, compiler = nil)
        super(expr, compiler)
        @operands = operands
      end

      # (see Cog#each)
      def _each(&block)
        operands.each do |op|
          op.each(&block)
        end
      end

    end # class Concat
  end # module Engine
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-core-0.16.3 lib/alf/engine/concat.rb
alf-core-0.16.2 lib/alf/engine/concat.rb
alf-core-0.16.1 lib/alf/engine/concat.rb
alf-core-0.16.0 lib/alf/engine/concat.rb
alf-core-0.15.0 lib/alf/engine/concat.rb