Module: Roo

Defined in:
lib/roo.rb,
lib/roo/font.rb,
lib/roo/link.rb,
lib/roo/utils.rb,
lib/roo/errors.rb,
lib/roo/excelx.rb,
lib/roo/tempdir.rb,
lib/roo/version.rb,
lib/roo/constants.rb,
lib/roo/excelx/cell.rb,
lib/roo/open_office.rb,
lib/roo/spreadsheet.rb,
lib/roo/excelx/sheet.rb,
lib/roo/excelx/format.rb,
lib/roo/excelx/shared.rb,
lib/roo/excelx/styles.rb,
lib/roo/excelx/comments.rb,
lib/roo/excelx/workbook.rb,
lib/roo/excelx/cell/base.rb,
lib/roo/excelx/cell/date.rb,
lib/roo/excelx/cell/time.rb,
lib/roo/excelx/extractor.rb,
lib/roo/excelx/sheet_doc.rb,
lib/roo/excelx/cell/empty.rb,
lib/roo/excelx/coordinate.rb,
lib/roo/excelx/cell/number.rb,
lib/roo/excelx/cell/string.rb,
lib/roo/excelx/cell/boolean.rb,
lib/roo/excelx/cell/datetime.rb,
lib/roo/excelx/relationships.rb,
lib/roo/excelx/shared_strings.rb

Defined Under Namespace

Modules: Tempdir, Utils Classes: Base, CSV, Error, Excelx, Font, HeaderRowNotFoundError, Link, OpenOffice, Spreadsheet

Constant Summary collapse

TEMP_PREFIX =
'roo_'.freeze
CLASS_FOR_EXTENSION =
{
  ods: Roo::OpenOffice,
  xlsx: Roo::Excelx,
  xlsm: Roo::Excelx,
  csv: Roo::CSV
}
VERSION =
"2.5.1"
ROO_EXCEL_NOTICE =
"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.".freeze
ROO_EXCELML_NOTICE =
"Excel SpreadsheetML support has been extracted to roo-xls. Install roo-xls to use Roo::Excel2003XML.".freeze
ROO_GOOGLE_NOTICE =
"Google support has been extracted to roo-google. Install roo-google to use Roo::Google.".freeze
LibreOffice =

LibreOffice is just an alias for Roo::OpenOffice class

Roo::OpenOffice

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object


21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/roo.rb', line 21

def self.const_missing(const_name)
  case const_name
  when :Excel
    raise ROO_EXCEL_NOTICE
  when :Excel2003XML
    raise ROO_EXCELML_NOTICE
  when :Google
    raise ROO_GOOGLE_NOTICE
  else
    super
  end
end