Sha256: 0a34e909d717b3d9ea7dd38834cbcfc9863187b9eef5562a241e28b6b4e3afc3

Contents?: true

Size: 232 Bytes

Versions: 3

Compression:

Stored size: 232 Bytes

Contents

require 'svgcode/svg/command'

module Svgcode
  module SVG
    class Path
      attr_reader :commands

      def initialize(str)
        @commands = str.split(/(?=[a-z])/i).collect { |s| Command.new(s) }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
svgcode-0.4.0 lib/svgcode/svg/path.rb
svgcode-0.3.0 lib/svgcode/svg/path.rb
svgcode-0.2.0 lib/svgcode/svg/path.rb