Class: Alf::Engine::Concat

Inherits:
Object
  • Object
show all
Includes:
Cog
Defined in:
lib/alf-engine/alf/engine/concat.rb

Overview

Concat tuples from multiple operands.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cog

#each, #to_dot, #to_relation

Constructor Details

#initialize(operands) ⇒ Concat

Creates a Concat instance



13
14
15
# File 'lib/alf-engine/alf/engine/concat.rb', line 13

def initialize(operands)
  @operands = operands
end

Instance Attribute Details

#operandsArray (readonly)

Returns operands to concatenate.

Returns:

  • (Array)

    operands to concatenate



10
11
12
# File 'lib/alf-engine/alf/engine/concat.rb', line 10

def operands
  @operands
end

Instance Method Details

#_each(&block) ⇒ Object



18
19
20
21
22
# File 'lib/alf-engine/alf/engine/concat.rb', line 18

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