Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f9ceaf4315
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (31 sloc) 0.739 kb
module Roo
class Spreadsheet
class << self
def open(file)
case File.extname(file)
when '.xls'
Roo::Excel.new(file)
when '.xlsx'
Roo::Excelx.new(file)
when '.ods'
Roo::Openoffice.new(file)
when '.xml'
Roo::Excel2003XML.new(file)
when ''
Roo::Google.new(file)
else
raise ArgumentError, "Don't know how to open file #{file}"
end
end
end
end
end
require 'roo/version'
# require 'roo/spreadsheetparser' TODO:
require 'roo/generic_spreadsheet'
require 'roo/openoffice'
require 'roo/excel'
require 'roo/excelx'
require 'roo/google'
require 'roo/excel2003xml'
require 'roo/roo_rails_helper'
Jump to Line
Something went wrong with that request. Please try again.