Module: Postsvg::Svg::PathData

Defined in:
lib/postsvg/svg/path_data.rb,
lib/postsvg/svg/path_data/parser.rb,
lib/postsvg/svg/path_data/command.rb

Overview

Parses the SVG path "d" attribute into a list of Command value objects. Each Command carries its opcode (M, L, C, Z, A, etc.) and its numeric arguments.

Defined Under Namespace

Modules: Parser Classes: Command

Class Method Summary collapse

Class Method Details

.parse(text) ⇒ Object



12
13
14
# File 'lib/postsvg/svg/path_data.rb', line 12

def self.parse(text)
  Parser.parse(text)
end