Class: CsvCombine

Inherits:
Object
  • Object
show all
Defined in:
lib/csv_combine.rb

Overview

Options :skip_header_files – skip headers from filename. :uniq – uniq csv lines.

Class Method Summary collapse

Class Method Details

.open(*args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/csv_combine.rb', line 9

def self.open(*args)
  files = []
  opt = {}
  args.each do |arg|
    if arg.class == Hash
      opt = arg
    else
      files << arg
    end
  end
  Reader.new(files,opt)
end