Unified parser object with auto detect

28 views
Skip to first unread message

Simon

unread,
Sep 30, 2011, 12:28:57 PM9/30/11
to ruby-roo
In the README.txt file

s = Openoffice.new("myspreadsheet.ods") # creates an
Openoffice Spreadsheet instance
s = Excel.new("myspreadsheet.xls") # creates an Excel
Spreadsheet instance
s = Google.new("myspreadsheetkey_at_google") # creates an Google
Spreadsheet instance
s = Excelx.new("myspreadsheet.xlsx") # creates an Excel
Spreadsheet instance for Excel .xlsx files

These seem needless to me why not have.
s = Spreadsheet.new or s = Sheet.new() and it auto detects the file
type?

you could also have s.doc_type "Excelx" or "OpenOffice".....


Also just to give a more unified tool why not add support for csv so
Csv.new('blah.csv').
Reply all
Reply to author
Forward
0 new messages