Sha256: 74727ded52f2e3ad1361b34426f48d188d4fb4b7448ed6fc514689558c569201

Contents?: true

Size: 241 Bytes

Versions: 3

Compression:

Stored size: 241 Bytes

Contents

require 'svgcode/svg/path_command'

module Svgcode
  module SVG
    class Path
      attr_reader :commands

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
svgcode-0.6.2 lib/svgcode/svg/path.rb
svgcode-0.6.1 lib/svgcode/svg/path.rb
svgcode-0.6.0 lib/svgcode/svg/path.rb