Class: PDF::TrimDetector::Point
- Inherits:
-
Object
- Object
- PDF::TrimDetector::Point
- Defined in:
- lib/pdf/trim_detector.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x, y) ⇒ Point
Returns a new instance of Point.
123 124 125 126 |
# File 'lib/pdf/trim_detector.rb', line 123 def initialize(x, y) @x = BigDecimal.new(x.to_s).round(1) @y = BigDecimal.new(y.to_s).round(1) end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
121 122 123 |
# File 'lib/pdf/trim_detector.rb', line 121 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
121 122 123 |
# File 'lib/pdf/trim_detector.rb', line 121 def y @y end |