lib/ttfunk/table.rb in ttfunk-1.5.1 vs lib/ttfunk/table.rb in ttfunk-1.6.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require_relative 'reader' module TTFunk class Table include Reader @@ -8,9 +10,11 @@ attr_reader :offset attr_reader :length def initialize(file) @file = file + @offset = nil + @length = nil info = file.directory_info(tag) if info @offset = info[:offset]