You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Ruby Script tool enables report templates to evaluate or run Ruby codes from templates and external Ruby files.
The Ruby tool includes 2 methods:

(i) ‘eval’ method: This method will evaluate Ruby text, and then return the result.
(ii) ‘execute’ method: This method will execute a Ruby file, and then return the result.

Like other Script tools, the Ruby Script tool ‘scripttool.jar’ must be installed in the ‘extensions’ folder of the Report Wizard plugin, and ‘jruby-complete-1.6.3.jar’ must be included in any class path or the ‘extensions’ folder. For further information about Custom tools and the installation, see Custom tool.

To import Ruby Script tool to a template, type the following code:

#import ('ruby', 'com.nomagic.reportwizard.tools.script.RubyScriptTool')

Related pages