Class: Tabula::Table::WithRulingLines

Inherits:
Tabula::Table show all
Defined in:
lib/tabula/table/table.rb

Overview

Table with ruling lines - extends Table with ruling information

Constant Summary

Constants inherited from Rectangle

Rectangle::VERTICAL_COMPARISON_THRESHOLD

Instance Attribute Summary collapse

Attributes inherited from Tabula::Table

#col_count, #extraction_method, #page_number, #row_count

Attributes inherited from Rectangle

#height, #left, #top, #width

Instance Method Summary collapse

Methods inherited from Tabula::Table

#add, #cells, #column, #each_cell, #each_row, #empty?, #get_cell, #inspect, #row, #rows, #to_a, #to_csv, #to_h, #to_json, #to_s, #to_tsv

Methods inherited from Rectangle

#<=>, #==, #area, #bottom, #bottom=, bounding_box_of, #bounds, #center, #contains?, #contains_point?, #dup, from_bounds, from_points, #hash, #horizontal_overlap, #horizontally_overlaps?, #inspect, #intersection, #intersects?, #merge, #merge!, #overlap_ratio, #points, #right, #right=, #to_s, #vertical_overlap, #vertically_overlaps?, #x, #x=, #y, #y=

Constructor Details

#initialize(horizontal_rulings: [], vertical_rulings: [], **kwargs) ⇒ WithRulingLines

Returns a new instance of WithRulingLines.



177
178
179
180
181
# File 'lib/tabula/table/table.rb', line 177

def initialize(horizontal_rulings: [], vertical_rulings: [], **kwargs)
  super(**kwargs)
  @horizontal_rulings = horizontal_rulings
  @vertical_rulings = vertical_rulings
end

Instance Attribute Details

#horizontal_rulings ⇒ Object (readonly)

Returns the value of attribute horizontal_rulings.



175
176
177
# File 'lib/tabula/table/table.rb', line 175

def horizontal_rulings
  @horizontal_rulings
end

#vertical_rulings ⇒ Object (readonly)

Returns the value of attribute vertical_rulings.



175
176
177
# File 'lib/tabula/table/table.rb', line 175

def vertical_rulings
  @vertical_rulings
end