File: test_file.rb

package info (click to toggle)
ruby-ttfunk 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,472 kB
  • sloc: ruby: 7,954; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class TestFile
  attr_reader :io
  alias contents io

  def initialize(io)
    @io = io
  end

  # Fake font directory entry for the table with the provided tag.
  def directory_info(*)
    { offset: 0, length: io.length }
  end
end