Class: Prune::Parsers::TableParser
- Defined in:
- lib/prune/parsers/document/page/table_parser.rb
Overview
Parser for directive “table”.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page, options = {}) ⇒ TableParser
constructor
Initialize.
Methods included from Prune::PObjects
Methods included from Functions
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, = {}) @page = page @options = @x = @orig_x = @page.x @y = @orig_y = @page.y @width = 0.0 @height = 0.0 end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/prune/parsers/document/page/table_parser.rb', line 8 def @options end |
#page ⇒ Object (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 |