Class: RGhost::Variable

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

Overview

Creates Postscript variable

Instance Method Summary collapse

Methods inherited from PsObject

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

Constructor Details

#initialize(name, value) ⇒ Variable

Example

v=Variable.new(:mytext, Show.new("Fooo Barrr") )
doc.set v


8
9
10
# File 'lib/rghost/variable.rb', line 8

def initialize(name,value)
  super("/#{name} #{value} def")
end