class PdfTempura::Document::Table::BoxedCharacterColumn

Public Class Methods

new(name, height, options = {}, &block) click to toggle source
# File lib/pdf_tempura/document/table/boxed_character_column.rb, line 4
def initialize(name, height, options = {}, &block)
  @name = name
  @height = height
  @options = options
  @block = block if block_given?
end

Public Instance Methods

field_at(coordinates) click to toggle source
# 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() click to toggle source
# File lib/pdf_tempura/document/table/boxed_character_column.rb, line 11
def width
  field_at([0,0]).width
end