Sha256: 18c7a55c89c4e905954722627b7e1f896f2eab84b2e396ec42a095da25a37ee3
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
module ETL module Control class FileSource < Source attr_accessor :skip_lines def initialize(control, configuration, definition) super configure end # Returns each row from the source def each @parser.each { |row| yield row } end private def configure @parser = ETL::Parser::Parser.class_for_name(@configuration[:parser]).new(self) @skip_lines = @configuration[:skip_lines] ||= 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activewarehouse-etl-0.4.0 | lib/etl/control/source/file_source.rb |