用户形象图片

Introduction
Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, extensible, and portable.
This component embeds the Ruby interpreter in a Kylix/Delphi application.

Usage examples
if ruby.EvalExpression('1+1') <> 2 then
raise Exception.create('Ruby can''t calculate!');

ruby.Expression.Text := 'print "Regexp".gsub!(/e.+/, "uby")';
ruby.Execute;
if ruby.Output <> 'Ruby' then
raise Exception.create('Ruby can''t write!');

 

links:http://www.sourcepole.com/2006/9/1/embedding-ruby-in-kylix-delphi

回到帖子顶部