Class: PDF::Reader::EventPoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(x, run) ⇒ EventPoint

Returns a new instance of EventPoint.



57
58
59
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 57

def initialize x, run
  @x, @run = x, run
end

Instance Attribute Details

#runObject (readonly)

Returns the value of attribute run.



55
56
57
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 55

def run
  @run
end

#xObject (readonly)

Returns the value of attribute x.



55
56
57
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 55

def x
  @x
end

Instance Method Details

#start?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/pdf/reader/overlapping_runs_filter.rb', line 61

def start?
  @x == @run.x
end