Sha256: 69dee2ae87fe4ddbce3d6f6f84968537681a58b07a8f277bb3f6026c9ec075c1
Contents?: true
Size: 449 Bytes
Versions: 17
Compression:
Stored size: 449 Bytes
Contents
class Prawn::SVG::Elements::Polyline < Prawn::SVG::Elements::Base include Prawn::SVG::Pathable def parse require_attributes('points') @points = parse_points(attributes['points']) end def apply apply_commands apply_markers end protected def commands @commands ||= [ Prawn::SVG::Pathable::Move.new(@points[0]) ] + @points[1..-1].map { |point| Prawn::SVG::Pathable::Line.new(point) } end end
Version data entries
17 entries across 17 versions & 1 rubygems