Class: Magick::RVG::Path

Inherits:
Shape
  • Object
show all
Defined in:
lib/rvg/embellishable.rb

Overview

class Line

Instance Method Summary collapse

Methods inherited from Shape

#add_primitives

Methods included from Duplicatable

#deep_copy

Methods included from Transformable

#matrix, #rotate, #scale, #skewX, #skewY, #translate

Methods included from Stylable

#styles

Constructor Details

#initialize(path) ⇒ Path

Define an SVG path. The argument can be either a path string or a PathData object. Use the RVG::ShapeConstructors#path method to create Path objects in a container.



68
69
70
71
72
# File 'lib/rvg/embellishable.rb', line 68

def initialize(path)
  super()
  @primitive = :path
  @args = [path.to_s]
end