class TTFunk::Table
Attributes
Public Class Methods
Source
# File lib/ttfunk/table.rb, line 13 def initialize(file) @file = file @offset = nil @length = nil info = file.directory_info(tag) if info @offset = info[:offset] @length = info[:length] parse_from(@offset) { parse! } end end
Public Instance Methods
Source
# File lib/ttfunk/table.rb, line 32 def raw if exists? parse_from(offset) { io.read(length) } end end
Source
# File lib/ttfunk/table.rb, line 38 def tag self.class.name.split(/::/).last.downcase end