Module: Roo

Defined in:
lib/roo.rb,
lib/roo/font.rb,
lib/roo/link.rb,
lib/roo/utils.rb,
lib/roo/version.rb,
lib/roo/spreadsheet.rb,
lib/roo/excelx/styles.rb,
lib/roo/excelx/comments.rb,
lib/roo/excelx/workbook.rb,
lib/roo/excelx/extractor.rb,
lib/roo/excelx/sheet_doc.rb,
lib/roo/excelx/relationships.rb,
lib/roo/excelx/shared_strings.rb

Defined Under Namespace

Modules: Utils Classes: Base, CSV, Excelx, Font, LibreOffice, Link, OpenOffice, Spreadsheet

Constant Summary collapse

CLASS_FOR_EXTENSION =
{
  ods: Roo::OpenOffice,
  xlsx: Roo::Excelx,
  csv: Roo::CSV
}
VERSION =
"2.0.2"

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/roo.rb', line 16

def self.const_missing(const_name)
  case const_name
  when :Excel
    raise "Excel support has been extracted to roo-xls due to its dependency on the GPL'd spreadsheet gem. Install roo-xls to use Roo::Excel."
  when :Excel2003XML
    raise "Excel SpreadsheetML support has been extracted to roo-xls. Install roo-xls to use Roo::Excel2003XML."
  when :Google
    raise "Google support has been extracted to roo-google. Install roo-google to use Roo::Google."
  else
    super
  end
end