class Prawn::SVG::Elements::Polyline
Public Instance Methods
Source
# File lib/prawn/svg/elements/polyline.rb, line 9 def apply apply_commands apply_markers end
Source
# File lib/prawn/svg/elements/polyline.rb, line 4 def parse require_attributes('points') @points = parse_points(attributes['points']) end
Protected Instance Methods
Source
# File lib/prawn/svg/elements/polyline.rb, line 16 def commands @commands ||= [ Prawn::SVG::Pathable::Move.new(@points[0]) ] + @points[1..].map do |point| Prawn::SVG::Pathable::Line.new(point) end end