Sha256: e67ea51c8f94570d2cd25e7c0ef6c7d90e20c108aedd67da82e30f98473e5112

Contents?: true

Size: 202 Bytes

Versions: 2

Compression:

Stored size: 202 Bytes

Contents

module Chronicle
  module Etl
    class StdinExtractor < Chronicle::Etl::Extractor
      def extract
        $stdin.read.each_line do |line|
          yield line
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chronicle-etl-0.1.4 lib/chronicle/etl/extractors/stdin_extractor.rb
chronicle-etl-0.1.3 lib/chronicle/etl/extractors/stdin_extractor.rb