File: variable.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 (10 lines) | stat: -rw-r--r-- 257 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
require "rghost/ps_object"
# Creates Postscript variable
class RGhost::Variable < RGhost::PsObject
  #===Example
  #  v=Variable.new(:mytext, Show.new("Fooo Barrr") )
  #  doc.set v
  def initialize(name, value)
    super("/#{name} #{value} def")
  end
end