Class: PDF::Reader::GlyphHash::ReturnData

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/reader/glyph_hash.rb

Overview

An internal class for returning multiple pieces of data and keep sorbet happy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(by_name, by_codepoint) ⇒ ReturnData

:(Hash[Symbol, Integer], Hash[Integer, Array]) -> void



47
48
49
50
# File 'lib/pdf/reader/glyph_hash.rb', line 47

def initialize(by_name, by_codepoint)
  @by_name = by_name
  @by_codepoint = by_codepoint
end

Instance Attribute Details

#by_codepointObject (readonly)

: Hash[Integer, Array]



44
45
46
# File 'lib/pdf/reader/glyph_hash.rb', line 44

def by_codepoint
  @by_codepoint
end

#by_nameObject (readonly)

: Hash[Symbol, Integer]



41
42
43
# File 'lib/pdf/reader/glyph_hash.rb', line 41

def by_name
  @by_name
end