Options :skip_header_files – skip headers from filename. :uniq – uniq csv lines.
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