Class: RGhost::NewPath

Inherits:
PsObject show all
Defined in:
lib/rghost/newpath.rb

Overview

Initializes the current path to be empty, causing the current point to become undefined.

Instance Method Summary collapse

Methods inherited from PsObject

#<<, #call, #graphic_scope, #raw, #set, #to_s

Constructor Details

#initialize(&block) ⇒ NewPath

Returns a new instance of NewPath.



11
12
13
14
# File 'lib/rghost/newpath.rb', line 11

def initialize(&block)
  @body=RGhost::PsFacade.new(&block)
  
end

Instance Method Details

#psObject



16
17
18
# File 'lib/rghost/newpath.rb', line 16

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