class SvgPathify::Shapes::Line

Public Instance Methods

path_commands() click to toggle source
# File lib/svg_pathify/shapes/line.rb, line 9
def path_commands
  [
    "M#{x1} #{y1}",
    "L#{x2} #{y2}",
    "L#{x1} #{y1}",
    "Z"
  ].join
end