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


9
10
11
12
# File 'lib/rghost/newpath.rb', line 9

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

Instance Method Details

#psObject


14
15
16
# File 'lib/rghost/newpath.rb', line 14

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