Sha256: 4cbf0be3046bc0cd6c6a84fc255ab2b1c7a2f11751d8bf5dc7057644875312e3

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Ductr
  module ETL
    #
    # The base class for implementing sources.
    #
    class Source < Control
      #
      # Iterates over rows.
      #
      # @yield [row] The row yielder
      #
      # @return [void]
      #
      def each(&)
        call_method.each(&)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ductr-0.2.3 lib/ductr/etl/controls/source.rb
ductr-0.2.2 lib/ductr/etl/controls/source.rb
ductr-0.2.1 lib/ductr/etl/controls/source.rb
ductr-0.2.0 lib/ductr/etl/controls/source.rb
ductr-0.1.2 lib/ductr/etl/controls/source.rb
ductr-0.1.1 lib/ductr/etl/controls/source.rb
ductr-0.1.0 lib/ductr/etl/controls/source.rb