Class: PDF::Writer::PolygonPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/writer/graphics.rb

Overview

Points for use in the drawing of polygons.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectorObject (readonly)

Returns the value of attribute connector


17
18
19
# File 'lib/pdf/writer/graphics.rb', line 17

def connector
  @connector
end

#xObject (readonly)

Returns the value of attribute x


17
18
19
# File 'lib/pdf/writer/graphics.rb', line 17

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y


17
18
19
# File 'lib/pdf/writer/graphics.rb', line 17

def y
  @y
end