Class: DXF::LWPolyline
Constant Summary
Constants inherited from Entity
Instance Attribute Summary collapse
-
#points ⇒ Object
Returns the value of attribute points.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(*points) ⇒ LWPolyline
constructor
A new instance of LWPolyline.
-
#lines ⇒ Object
Return the individual line segments.
Methods inherited from Entity
Methods included from ClusterFactory
Constructor Details
#initialize(*points) ⇒ LWPolyline
Returns a new instance of LWPolyline.
111 112 113 |
# File 'lib/dxf/entity.rb', line 111 def initialize(*points) @points = points.map {|a| Point[a]} end |
Instance Attribute Details
#points ⇒ Object
Returns the value of attribute points.
109 110 111 |
# File 'lib/dxf/entity.rb', line 109 def points @points end |