Sha256: 10273f4afd6e894292fd9f6bb3f66501895cf0323f9c513a470c545f6d35ed29
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require_relative "csv-import-analyzer/csv_sanitizer" require_relative "csv-import-analyzer/helpers/errors" module CsvImportAnalyzer # To identify the methods in the module as class methods extend self ### # main public interface to the library # makes sure that the file exists and # passes the file and any additional options given to CsvSanitizer # returns FileNotFound if given file is invalid ### def process(filename, options = {}) if File::exist?(filename) CsvImportAnalyzer::CsvSanitizer.new().process(File.absolute_path(filename), options) else FileNotFound.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
csv-import-analyzer-0.0.6 | lib/csv-import-analyzer.rb |
csv-import-analyzer-0.0.5 | lib/csv-import-analyzer.rb |
csv-import-analyzer-0.0.4 | lib/csv-import-analyzer.rb |