Sha256: 00ded76902d9016b494cd5cf384a2cb136f3d767220a86bd61625fc14c6b8b12

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

module Itiel
  module Extract
    #
    # Defines how the initial extractors behave
    #
    # All classes including this module must define the in_batches method
    #
    module ChainedStep
      attr_accessor :next_step

      alias :>> :next_step=

      def start
        self.next_step.input = extract
      end

      def extract
        raise Itiel::MethodNotImplementedException.new "extract is not implemented"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itiel-0.1.2 lib/itiel/extract/chained_step.rb
itiel-0.1.1 lib/itiel/extract/chained_step.rb
itiel-0.1.0 lib/itiel/extract/chained_step.rb