Module: Tabula::Tabular

Includes:
AbstractInterface
Included in:
Spreadsheet, Table
Defined in:
lib/tabula/entities/tabular.rb

Instance Method Summary collapse

Methods included from AbstractInterface

included

Instance Method Details

#colsObject



35
# File 'lib/tabula/entities/tabular.rb', line 35

def cols; Tabular.api_not_implemented(self); end

#extraction_methodObject

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

#pageObject



33
# File 'lib/tabula/entities/tabular.rb', line 33

def page; Tabular.api_not_implemented(self); end

#rowsObject



34
# File 'lib/tabula/entities/tabular.rb', line 34

def rows; Tabular.api_not_implemented(self); end

#to_aObject



39
# File 'lib/tabula/entities/tabular.rb', line 39

def to_a; Tabular.api_not_implemented(self); end

#to_csvObject



37
# File 'lib/tabula/entities/tabular.rb', line 37

def to_csv; Tabular.api_not_implemented(self); end

#to_jsonObject



40
# File 'lib/tabula/entities/tabular.rb', line 40

def to_json; Tabular.api_not_implemented(self); end

#to_tsvObject



38
# File 'lib/tabula/entities/tabular.rb', line 38

def to_tsv; Tabular.api_not_implemented(self); end