Module: Inkscape::Merge::DataParser

Defined in:
lib/inkscape_merge/data_parsers.rb

Overview

:nodoc:

Defined Under Namespace

Classes: CSV

Class Method Summary collapse

Class Method Details

.detect(options) ⇒ Object

Detect, which parser to use for given input file



18
19
20
21
22
23
# File 'lib/inkscape_merge/data_parsers.rb', line 18

def self.detect(options)
  case options.data_file
  when /.csv$/i
    return ::Inkscape::Merge::DataParser::CSV.new(options.data_file, options.csv_options)
  end
end