diff options
Diffstat (limited to 'lib/scale/shapes/path.rb')
| -rw-r--r-- | lib/scale/shapes/path.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/scale/shapes/path.rb b/lib/scale/shapes/path.rb index ea5f7c7..484bd95 100644 --- a/lib/scale/shapes/path.rb +++ b/lib/scale/shapes/path.rb @@ -3,6 +3,10 @@ module Scale include Node attribute :d, String + def move_to(x:, y:) + self.d="M#{x} #{y}" + end + def xml_tag :path end |
