Class: PDF::Reader::GlyphHash::ReturnData
- Inherits:
-
Object
- Object
- PDF::Reader::GlyphHash::ReturnData
- 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
-
#by_codepoint ⇒ Object
readonly
: Hash[Integer, Array].
-
#by_name ⇒ Object
readonly
: Hash[Symbol, Integer].
Instance Method Summary collapse
-
#initialize(by_name, by_codepoint) ⇒ ReturnData
constructor
:(Hash[Symbol, Integer], Hash[Integer, Array]) -> void.
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_codepoint ⇒ Object (readonly)
: Hash[Integer, Array]
44 45 46 |
# File 'lib/pdf/reader/glyph_hash.rb', line 44 def by_codepoint @by_codepoint end |
#by_name ⇒ Object (readonly)
: Hash[Symbol, Integer]
41 42 43 |
# File 'lib/pdf/reader/glyph_hash.rb', line 41 def by_name @by_name end |