Module: Workbook
- Defined in:
- lib/workbook.rb,
lib/workbook/row.rb,
lib/workbook/book.rb,
lib/workbook/cell.rb,
lib/workbook/sheet.rb,
lib/workbook/table.rb,
lib/workbook/column.rb,
lib/workbook/format.rb,
lib/workbook/version.rb,
lib/workbook/template.rb,
lib/workbook/nil_value.rb,
lib/workbook/types/date.rb,
lib/workbook/types/time.rb,
lib/workbook/modules/cell.rb,
lib/workbook/types/string.rb,
lib/workbook/modules/cache.rb,
lib/workbook/types/numeric.rb,
lib/workbook/types/nil_class.rb,
lib/workbook/types/true_class.rb,
lib/workbook/modules/diff_sort.rb,
lib/workbook/types/false_class.rb,
lib/workbook/readers/csv_reader.rb,
lib/workbook/readers/ods_reader.rb,
lib/workbook/readers/txt_reader.rb,
lib/workbook/readers/xls_reader.rb,
lib/workbook/readers/xls_shared.rb,
lib/workbook/writers/xls_writer.rb,
lib/workbook/modules/type_parser.rb,
lib/workbook/readers/xlsx_reader.rb,
lib/workbook/writers/html_writer.rb,
lib/workbook/writers/xlsx_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 collapse
- 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.8.1'
Class Method Summary collapse
- .caching_enabled? ⇒ Boolean
-
.disable_caching! ⇒ Object
Disable caching globally (wherever applicable).
-
.enable_caching! ⇒ Object
Enable caching globally (wherever applicable).
Class Method Details
.caching_enabled? ⇒ Boolean
21 22 23 |
# File 'lib/workbook.rb', line 21 def caching_enabled? @@caching_enabled ||= true end |
.disable_caching! ⇒ Object
Disable caching globally (wherever applicable)
25 26 27 |
# File 'lib/workbook.rb', line 25 def disable_caching! @@caching_enabled = false end |
.enable_caching! ⇒ Object
Enable caching globally (wherever applicable)
29 30 31 |
# File 'lib/workbook.rb', line 29 def enable_caching! @@caching_enabled = true end |