Sha256: 2232b6cb9fcd218053e21dc6789a06b5f4a7080b8b6215518b7da620803968a2
Contents?: true
Size: 634 Bytes
Versions: 6
Compression:
Stored size: 634 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 '' 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/roo_rails_helper'
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
hmcgowan-roo-1.3.7 | lib/roo.rb |
hmcgowan-roo-1.3.8 | lib/roo.rb |
hmcgowan-roo-1.3.9 | lib/roo.rb |
roo-1.3.11 | lib/roo.rb |
roo-1.3.8 | lib/roo.rb |
roo-1.3.9 | lib/roo.rb |