Class: PdfTempura::Document::Table::BoxedCharacterColumn
- Defined in:
- lib/pdf_tempura/document/table/boxed_character_column.rb
Instance Attribute Summary
Attributes inherited from Column
Instance Method Summary collapse
- #field_at(coordinates) ⇒ Object
-
#initialize(name, height, options = {}, &block) ⇒ BoxedCharacterColumn
constructor
A new instance of BoxedCharacterColumn.
- #width ⇒ Object
Methods inherited from Column
Constructor Details
#initialize(name, height, options = {}, &block) ⇒ BoxedCharacterColumn
Returns a new instance of BoxedCharacterColumn.
4 5 6 7 8 9 |
# File 'lib/pdf_tempura/document/table/boxed_character_column.rb', line 4 def initialize(name, height, = {}, &block) @name = name @height = height @options = @block = block if block_given? end |
Instance Method Details
#field_at(coordinates) ⇒ Object
15 16 17 |
# File 'lib/pdf_tempura/document/table/boxed_character_column.rb', line 15 def field_at(coordinates) PdfTempura::Document::BoxedCharacters.new(@name, coordinates, @height, @options, &@block) end |
#width ⇒ Object
11 12 13 |
# File 'lib/pdf_tempura/document/table/boxed_character_column.rb', line 11 def width field_at([0,0]).width end |