FeResPost Web Site                     FeResPost Online User Manual

X.G.2.1 Ruby programming

In this case, most of the VBA programming of post-processing operations has been replaced by corresponding code in “TESTSAT/VBARUBYEX/RUBY” directory. This code is loaded through the “main.rb” main file. This file looks as follows:

    $: << Dir.getwd+"/RUBY"
    $: << "D:/SHARED/FERESPOST/SRC/OUTPUTS/RUBY"
    $: << "D:/FERESPOST/BINARIES/FeResPost_4.0.10/RUBY"

    $stdout.reopen("main.log","w")
    $stdout.sync=true
    $stderr=$stdout

    require "dl"

    require "UTIL/util"
    require "UTIL/xls"

    require "POSTPROJECT/postProject"

One makes the following comments:

Note that the example we provide here depends on the availability of “FeResPost” and “sqlite3” ruby extensions. The example will not work on your computer if these two modules are not properly installed.