# frozen_string_literal: true module Triangular class Polyline attr_accessor :lines def initialize(lines) @lines = lines end def to_svg(width, height, units, x_offset = 0, y_offset = 0) output = "\n" output += "\n" output += "\n" output += " \n" @lines.each do |line| output += " #{line.to_svg_path(units)}\n" end output += " \n" output += '' end end end