Class: TTFunk::Table::Simple

Inherits:
TTFunk::Table show all
Defined in:
lib/ttfunk/table/simple.rb

Overview

A table that TTFunk doesn’t decode but preserve.

Instance Attribute Summary collapse

Attributes inherited from TTFunk::Table

#file, #length, #offset

Instance Method Summary collapse

Methods inherited from TTFunk::Table

#exists?, #raw

Constructor Details

#initialize(file, tag) ⇒ Simple

Returns a new instance of Simple.

Parameters:



15
16
17
18
# File 'lib/ttfunk/table/simple.rb', line 15

def initialize(file, tag)
  @tag = tag
  super(file)
end

Instance Attribute Details

#tagString (readonly)

Table tag

Returns:

  • (String)


11
12
13
# File 'lib/ttfunk/table/simple.rb', line 11

def tag
  @tag
end