Module: Workbook

Defined in:
lib/workbook.rb,
lib/workbook/row.rb,
lib/workbook/book.rb,
lib/workbook/cell.rb,
lib/workbook/table.rb,
lib/workbook/sheet.rb,
lib/workbook/format.rb,
lib/workbook/column.rb,
lib/workbook/version.rb,
lib/workbook/template.rb,
lib/workbook/nil_value.rb,
lib/workbook/types/Time.rb,
lib/workbook/types/Date.rb,
lib/workbook/types/String.rb,
lib/workbook/modules/cache.rb,
lib/workbook/types/Numeric.rb,
lib/workbook/types/NilClass.rb,
lib/workbook/types/TrueClass.rb,
lib/workbook/types/FalseClass.rb,
lib/workbook/modules/diff_sort.rb,
lib/workbook/writers/xls_writer.rb,
lib/workbook/readers/ods_reader.rb,
lib/workbook/readers/xls_shared.rb,
lib/workbook/readers/csv_reader.rb,
lib/workbook/readers/xls_reader.rb,
lib/workbook/readers/txt_reader.rb,
lib/workbook/readers/xlsx_reader.rb,
lib/workbook/writers/xlsx_writer.rb,
lib/workbook/modules/type_parser.rb,
lib/workbook/writers/html_writer.rb,
lib/workbook/writers/csv_table_writer.rb,
lib/workbook/writers/json_table_writer.rb,
lib/workbook/modules/raw_objects_storage.rb

Defined Under Namespace

Modules: Modules, Readers, Types, Writers Classes: Book, Cell, Column, Format, NilValue, Row, Sheet, Table, Template

Constant Summary

SUPPORTED_MIME_TYPES =

The Book class is the container of sheets. It can be inialized by either the standard initalizer or the open method. The Book class can also keep a reference to a template class, storing shared formatting options.

[
  "application/zip",
  "text/plain",
  "application/x-ariadne-download",
  "application/vnd.ms-excel",
  "application/excel",
  "application/vnd.ms-office",
  "text/csv",
  "text/tab-separated-values",
  "application/x-ms-excel",
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
  "application/vnd.oasis.opendocument.spreadsheet",
  "application/x-vnd.oasis.opendocument.spreadsheet",
  "CDF V2 Document, No summary info"
]
VERSION =
'0.4.9'

Class Method Summary collapse

Class Method Details

.caching_enabled?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/workbook.rb', line 17

def caching_enabled?
  @@caching_enabled ||= true
end

.disable_caching!Object

Disable caching globally (wherever applicable)



21
22
23
# File 'lib/workbook.rb', line 21

def disable_caching!
  @@caching_enabled = false
end

.enable_caching!Object

Enable caching globally (wherever applicable)



25
26
27
# File 'lib/workbook.rb', line 25

def enable_caching!
  @@caching_enabled = true
end