Class: Sketch::Polygon

Inherits:
Element
  • Object
show all
Defined in:
lib/sketch/polygon.rb

Instance Method Summary collapse

Methods inherited from Element

central_point, #draw, #svg_node

Instance Method Details

#svg_attributesObject



9
10
11
12
13
# File 'lib/sketch/polygon.rb', line 9

def svg_attributes
  out = super
  out['points'] = attributes[:points].map{|point| point.join(',')}.join(' ')
  out
end