Class: RGhost::Variable
Overview
Creates Postscript variable
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Variable
constructor
Example v=Variable.new(:mytext, Show.new(“Fooo Barrr”) ) doc.set v.
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 |