Class: TokenizeParsedSVG

Inherits:
Object
  • Object
show all
Defined in:
lib/convert_svg_string_to_gcode/helpers/tokenize_parsed_svg.rb

Class Method Summary collapse

Class Method Details

.perform(parsed_svg) ⇒ Object



3
4
5
# File 'lib/convert_svg_string_to_gcode/helpers/tokenize_parsed_svg.rb', line 3

def self.perform(parsed_svg)
  return (parsed_svg.xpath('//path').attribute("d").value.split(%r{([A-Z ])}) - ["", " "])
end