Module: Tabula::Tabular
- Includes:
- AbstractInterface
- Included in:
- Spreadsheet, Table
- Defined in:
- lib/tabula/entities/tabular.rb
Instance Method Summary collapse
- #cols ⇒ Object
-
#extraction_method ⇒ Object
this is a pseudo-interface as described here: metabates.com/2011/02/07/building-interfaces-and-abstract-classes-in-ruby/ Table and Spreadsheet implement this interface, so should any class intended to represent tabular data from a PDF, e.g.
- #page ⇒ Object
- #rows ⇒ Object
- #to_a ⇒ Object
- #to_csv ⇒ Object
- #to_json ⇒ Object
- #to_tsv ⇒ Object
Methods included from AbstractInterface
Instance Method Details
#cols ⇒ Object
35 |
# File 'lib/tabula/entities/tabular.rb', line 35 def cols; Tabular.api_not_implemented(self); end |
#extraction_method ⇒ Object
this is a pseudo-interface as described here: metabates.com/2011/02/07/building-interfaces-and-abstract-classes-in-ruby/ Table and Spreadsheet implement this interface, so should any class intended to represent tabular data from a PDF, e.g. if another extraction method were created, so that Tabula GUI and API can correctly handle its data.
31 |
# File 'lib/tabula/entities/tabular.rb', line 31 def extraction_method; raise Tabular.api_not_implemented(self); end |
#page ⇒ Object
33 |
# File 'lib/tabula/entities/tabular.rb', line 33 def page; Tabular.api_not_implemented(self); end |
#rows ⇒ Object
34 |
# File 'lib/tabula/entities/tabular.rb', line 34 def rows; Tabular.api_not_implemented(self); end |
#to_a ⇒ Object
39 |
# File 'lib/tabula/entities/tabular.rb', line 39 def to_a; Tabular.api_not_implemented(self); end |
#to_csv ⇒ Object
37 |
# File 'lib/tabula/entities/tabular.rb', line 37 def to_csv; Tabular.api_not_implemented(self); end |
#to_json ⇒ Object
40 |
# File 'lib/tabula/entities/tabular.rb', line 40 def to_json; Tabular.api_not_implemented(self); end |
#to_tsv ⇒ Object
38 |
# File 'lib/tabula/entities/tabular.rb', line 38 def to_tsv; Tabular.api_not_implemented(self); end |