Class: Magick::RVG::Path
- Inherits:
-
Shape
- Object
- Shape
- Magick::RVG::Path
- Defined in:
- lib/rvg/embellishable.rb
Overview
class Line
Instance Method Summary collapse
-
#initialize(path) ⇒ Path
constructor
Define an SVG path.
Methods included from Duplicatable
Methods included from Transformable
#matrix, #rotate, #scale, #skewX, #skewY, #translate
Methods included from Stylable
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.
66 67 68 69 70 |
# File 'lib/rvg/embellishable.rb', line 66 def initialize(path) super() @primitive = :path @args = [path.to_s] end |