Class: Prune::Parsers::TableParser

Inherits:
Base
  • Object
show all
Defined in:
lib/prune/parsers/document/page/table_parser.rb

Overview

Parser for directive “table”.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Prune::PObjects

pa, pd, ph, pl, pn, ps

Methods included from Functions

#mm_to_pt, #pt_to_mm

Constructor Details

#initialize(page, options = {}) ⇒ TableParser

Initialize.



11
12
13
14
15
16
17
18
# File 'lib/prune/parsers/document/page/table_parser.rb', line 11

def initialize(page, options = {})
  @page = page
  @options = options
  @x = @orig_x = @page.x
  @y = @orig_y = @page.y
  @width = 0.0
  @height = 0.0
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/prune/parsers/document/page/table_parser.rb', line 8

def options
  @options
end

#pageObject (readonly)

Returns the value of attribute page.



7
8
9
# File 'lib/prune/parsers/document/page/table_parser.rb', line 7

def page
  @page
end