Sha256: 5e12e6d94fc328dd7b54f771a3d343e1bd59ea62227dc816367649951257cf74

Contents?: true

Size: 202 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

Version Path
chronicle-etl-0.2.4 lib/chronicle/etl/extractors/stdin_extractor.rb
chronicle-etl-0.2.3 lib/chronicle/etl/extractors/stdin_extractor.rb
chronicle-etl-0.2.2 lib/chronicle/etl/extractors/stdin_extractor.rb
chronicle-etl-0.2.1 lib/chronicle/etl/extractors/stdin_extractor.rb
chronicle-etl-0.2.0 lib/chronicle/etl/extractors/stdin_extractor.rb