class Sketch::Polygon

Public Instance Methods

svg_attributes() click to toggle source
Calls superclass method Sketch::Base#svg_attributes
# File lib/sketch/polygon.rb, line 9
def svg_attributes
  out = super
  out['points'] = attributes[:points].map{|point| point.join(',')}.join(' ')
  out
end