Class: PDF::Reader::EventPoint
- Inherits:
-
Object
- Object
- PDF::Reader::EventPoint
- Defined in:
- lib/pdf/reader/overlapping_runs_filter.rb
Overview
Utility class used to avoid modifying the underlying TextRun objects while we’re looking for duplicates
Instance Attribute Summary collapse
-
#run ⇒ Object
readonly
: PDF::Reader::TextRun.
-
#x ⇒ Object
readonly
: Numeric.
Instance Method Summary collapse
-
#initialize(x, run) ⇒ EventPoint
constructor
: (Numeric, PDF::Reader::TextRun) -> void.
-
#start? ⇒ Boolean
: () -> bool.
Constructor Details
#initialize(x, run) ⇒ EventPoint
: (Numeric, PDF::Reader::TextRun) -> void
67 68 69 70 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 67 def initialize(x, run) @x = x @run = run end |
Instance Attribute Details
#run ⇒ Object (readonly)
: PDF::Reader::TextRun
64 65 66 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 64 def run @run end |
#x ⇒ Object (readonly)
: Numeric
61 62 63 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 61 def x @x end |
Instance Method Details
#start? ⇒ Boolean
: () -> bool
73 74 75 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 73 def start? @x == @run.x end |