Module: RGhost::Load
- Defined in:
- lib/rghost/load.rb
Class Method Summary collapse
-
.binary(path) ⇒ Object
Loads binary library.
-
.library(name, type = :ps) ⇒ Object
Loads library.
- .rg_enviroment ⇒ Object
Class Method Details
.binary(path) ⇒ Object
Loads binary library
35 36 37 38 |
# File 'lib/rghost/load.rb', line 35 def self.binary(path) File.open(path).readlines.join end |
.library(name, type = :ps) ⇒ Object
Loads library
4 5 6 7 8 9 |
# File 'lib/rghost/load.rb', line 4 def self.library(name, type=:ps) #PsObject.new File.open(File.dirname(__FILE__)+File::SEPARATOR+type.to_s+File::SEPARATOR+name.to_s+"."+type.to_s).readlines.join("") RGhost::PsObject.new("(#{name.to_s}.#{type}) runlibfile\n") end |
.rg_enviroment ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rghost/load.rb', line 11 def self.rg_enviroment RGhost::PsObject.new do raw RGhost::Load.library(:basic) raw RGhost::Load.library(:cursor) raw RGhost::Load.library(:rectangle) raw RGhost::Load.library(:font) raw RGhost::Load.library(:textarea) raw RGhost::Load.library(:horizontal_line) raw RGhost::Load.library(:vertical_line) raw RGhost::Load.library(:callbacks) raw RGhost::Load.library(:show) raw RGhost::Load.library(:eps) raw RGhost::Load.library(:jpeg) raw RGhost::Load.library(:gif) raw RGhost::Load.library(:begin_document) raw RGhost::Load.library(:datagrid) raw RGhost::Load.library(:text) raw RGhost::Load.library(:frame) raw RGhost::Load.library(:link) raw RGhost::Load.library(:rect_link) end end |