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
Returns the value of attribute run.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
Instance Method Summary collapse
-
#initialize(x, run) ⇒ EventPoint
constructor
A new instance of EventPoint.
- #start? ⇒ Boolean
Constructor Details
#initialize(x, run) ⇒ EventPoint
Returns a new instance of EventPoint.
62 63 64 65 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 62 def initialize(x, run) @x = x @run = run end |
Instance Attribute Details
#run ⇒ Object (readonly)
Returns the value of attribute run.
60 61 62 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 60 def run @run end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
58 59 60 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 58 def x @x end |
Instance Method Details
#start? ⇒ Boolean
67 68 69 |
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 67 def start? @x == @run.x end |