File: newpath.rb

package info (click to toggle)
ruby-rghost 0.9.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,188 kB
  • sloc: ruby: 3,374; makefile: 6; sh: 1
file content (15 lines) | stat: -rw-r--r-- 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "rghost/ps_object"
require "rghost/cursor"
require "rghost/point"
require "rghost/line_width"

# Initializes the current path to be empty, causing the current point to become undefined.
class RGhost::NewPath < RGhost::PsObject
  def initialize(&)
    @body = RGhost::PsFacade.new(&)
  end

  def ps
    "newpath #{@body} closepath"
  end
end