Sha256: c1a448122789cfee3ac4f38a989b742f89578604b3ee62cf4ca359ef636c1090
Contents?: true
Size: 714 Bytes
Versions: 5
Compression:
Stored size: 714 Bytes
Contents
module Roo class Spreadsheet class << self def open(file) case File.extname(file) when '.xls' Excel.new(file) when '.xlsx' Excelx.new(file) when '.ods' Openoffice.new(file) when '.xml' Excel2003XML.new(file) when '' 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'
Version data entries
5 entries across 5 versions & 3 rubygems
Version | Path |
---|---|
roo-immersion-1.0.0 | lib/roo.rb |
aunderwo-roo-1.1.1 | lib/roo.rb |
aunderwo-roo-1.1.0 | lib/roo.rb |
donibuchanan-roo-1.3.12 | lib/roo.rb |
aunderwo-roo-1.0.0 | lib/roo.rb |