Class: PDF::Writer::PolygonPoint
- Inherits:
-
Object
- Object
- PDF::Writer::PolygonPoint
- Defined in:
- lib/pdf/writer/graphics.rb
Overview
Points for use in the drawing of polygons.
Instance Attribute Summary collapse
-
#connector ⇒ Object
readonly
Returns the value of attribute connector.
-
#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, connector = :line) ⇒ PolygonPoint
constructor
A new instance of PolygonPoint.
Constructor Details
#initialize(x, y, connector = :line) ⇒ PolygonPoint
Returns a new instance of PolygonPoint.
13 14 15 |
# File 'lib/pdf/writer/graphics.rb', line 13 def initialize(x, y, connector = :line) @x, @y, @connector = x, y, connector end |
Instance Attribute Details
#connector ⇒ Object (readonly)
Returns the value of attribute connector.
17 18 19 |
# File 'lib/pdf/writer/graphics.rb', line 17 def connector @connector end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
17 18 19 |
# File 'lib/pdf/writer/graphics.rb', line 17 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
17 18 19 |
# File 'lib/pdf/writer/graphics.rb', line 17 def y @y end |