class SpreadsheetCreater

Public Class Methods

create(filename) click to toggle source

Contract String => Or[IsA, IsA]

# File lib/tmis/engine/import/spreadsheet_roo.rb, line 129
def self.create(filename)
  filename = filename.force_encoding("UTF-8")
  if filename =~ /.*.csv/
    SpreadsheetRoo.new(File.expand_path(filename))
  else
    SpreadsheetSpreadsheet.new(File.expand_path(filename))
  end
end