Class: Musa::Series::Operations::ComposerAsOperationSerie Private

Inherits:
Object
  • Object
show all
Defined in:
lib/musa-dsl/series/series-composer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Wrapper that exposes Composer as a serie operation.

Allows Composer::Composer pipelines to be used as standard serie operations. The composer takes input from the source serie, processes it through the configured pipeline, and outputs transformed values.

This enables complex multi-input/output serie transformations to be used in serie operation chains.

Examples:

Using composer as operation

serie = FromArray.new([1, 2, 3, 4])
transformed = serie.composer do
  # Composer pipeline configuration
  pipeline { |v| v * 2 }
end
transformed.next_value  # => 2

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serie, &block) ⇒ ComposerAsOperationSerie

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ComposerAsOperationSerie.



89
90
91
92
93
94
# File 'lib/musa-dsl/series/series-composer.rb', line 89

def initialize(serie, &block)
  self.source = serie
  @block = block

  init
end

Instance Attribute Details

#composerObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



96
97
98
# File 'lib/musa-dsl/series/series-composer.rb', line 96

def composer
  @composer
end