module Triangular class Polyline attr_accessor :lines def initialize(lines) @lines = lines end def to_svg(x_offset = 20, y_offset = 20) output = '' + "\n" output << '' + "\n" output << '' + "\n" output << " \n" @lines.each do |line| output << " " + line.to_svg_path + "\n" end output << ' ' + "\n" output << '' end end end