Class: RGhost::DSCEntry

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

Overview

Specifiesnew DSC (Document Structuring Conventions)

Instance Method Summary collapse

Methods inherited from PsObject

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

Constructor Details

#initialize {|@entries=[]| ... } ⇒ DSCEntry

Example

DSCEntry.new do |entry|
  entry << "BoundingBox: 0 0 612 792"
  entry << "Pages: 45"
  entry << "BeginSetup"
end

Yields:

  • (@entries=[])

10
11
12
13
# File 'lib/rghost/dsc_entry.rb', line 10

def initialize

  yield @entries=[]
end

Instance Method Details

#psObject


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

def ps
  @entries.map{|e| "%%#{e}\n"}.to_s

end