class Tipo::Table::Base
Attributes
font[R]
font_header[R]
name[RW]
Public Class Methods
new(font_header, font)
click to toggle source
# File lib/tipo/table/base.rb, line 7 def initialize font_header, font @font_header = font_header @font = font end
Public Instance Methods
offset()
click to toggle source
# File lib/tipo/table/base.rb, line 12 def offset seek_to_table @name end
Private Instance Methods
find_table(tag)
click to toggle source
# File lib/tipo/table/base.rb, line 23 def find_table tag font_header.table_records.select { |t| t.tag == tag }.first end
seek_to_table(tag)
click to toggle source
# File lib/tipo/table/base.rb, line 18 def seek_to_table tag font.seek find_table(tag).offset font.tell end