Module: TableData
- Defined in:
- lib/tabledata.rb,
lib/tabledata/row.rb,
lib/tabledata/table.rb,
lib/tabledata/column.rb,
lib/tabledata/parser.rb,
lib/tabledata/version.rb,
lib/tabledata/coercion.rb,
lib/tabledata/detection.rb,
lib/tabledata/presenter.rb,
lib/tabledata/exceptions.rb,
lib/tabledata/coercing_row.rb,
lib/tabledata/presenters/csv.rb,
lib/tabledata/presenters/pdf.rb,
lib/tabledata/presenters/html.rb,
lib/tabledata/presenters/excel.rb
Overview
Tables Read tabular data from various formats.
Defined Under Namespace
Modules: Coercion, Detection, Exception, Parser, Presenters Classes: CoercingRow, Column, InvalidColumnAccessor, InvalidColumnCount, InvalidColumnName, InvalidColumnSpecifier, InvalidFileType, Presenter, Row, Table
Constant Summary collapse
- Version =
Gem::Version.new("0.0.3")
Class Method Summary collapse
- .require_library(name, message) ⇒ Object
- .table_from_file(path, options = nil) ⇒ Object
-
.tables_from_file(path) ⇒ TableData::Tables
NOT IMPLEMENTED!.
Class Method Details
.require_library(name, message) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/tabledata.rb', line 23 def require_library(name, ) $stdout, oldstdout = StringIO.new, $stdout require name rescue LoadError => error if error. =~ /cannot load such file -- #{Regexp.escape(name)}/ then raise LibraryMissingError.new(name, , error) else raise end ensure $stdout = oldstdout end |
.table_from_file(path, options = nil) ⇒ Object
12 13 14 |
# File 'lib/tabledata.rb', line 12 def table_from_file(path, =nil) Table.from_file(path, ) end |
.tables_from_file(path) ⇒ TableData::Tables
NOT IMPLEMENTED!
19 20 21 |
# File 'lib/tabledata.rb', line 19 def tables_from_file(path) raise "Unimplemented" end |