Module: Roo

Defined in:
lib/roo/csv.rb,
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/images.rb,
lib/roo/excelx/shared.rb,
lib/roo/excelx/styles.rb,
lib/roo/formatters/csv.rb,
lib/roo/formatters/xml.rb,
lib/roo/excelx/comments.rb,
lib/roo/excelx/workbook.rb,
lib/roo/formatters/base.rb,
lib/roo/formatters/yaml.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/formatters/matrix.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,
lib/roo/helpers/default_attr_reader.rb,
lib/roo/helpers/weak_instance_cache.rb

Overview

returns an XML representation of all sheets of a spreadsheet file

Defined Under Namespace

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

Constant Summary collapse

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

LibreOffice is just an alias for Roo::OpenOffice class

Roo::OpenOffice

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/roo.rb', line 24

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