Class: Magick::RVG::Path
Overview
class Line
Instance Method Summary collapse
-
#initialize(path) ⇒ Path
constructor
Define an SVG path.
Methods inherited from Shape
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.
68 69 70 71 72 |
# File 'lib/rvg/embellishable.rb', line 68 def initialize(path) super() @primitive = :path @args = [path.to_s] end |