Method: PDF::Reader::Rectangle#initialize
- Defined in:
- lib/pdf/reader/rectangle.rb
#initialize(x1, y1, x2, y2) ⇒ Rectangle
: (Numeric, Numeric, Numeric, Numeric) -> void
36 37 38 39 40 41 42 |
# File 'lib/pdf/reader/rectangle.rb', line 36 def initialize(x1, y1, x2, y2) @bottom_left = Point.new(0,0) #: PDF::Reader::Point @bottom_right = Point.new(0,0) #: PDF::Reader::Point @top_left = Point.new(0,0) #: PDF::Reader::Point @top_right = Point.new(0,0) #: PDF::Reader::Point set_corners(x1, y1, x2, y2) end |