@RUBYNot in LE
Print Topic  Return to Overview  Previous Topic  Next Topic 

@RUBY[expression] : Returns the string result of the Ruby expression.  Note that the Ruby environment is persistent within a TCC tab window, so you can do things like:

 

       %@ruby[b = 42]

       %@ruby[p b]

 

which will print "42".  The value returned by @RUBY is the value returned by the RUBY API rb_eval_string.

 

You can query the type of the value returned by the last @RUBY call with the RUBYTYPE internal variable, and the value returned by the last @RUBY call with the RUBYVALUE internal variable.

Topic "f_ruby.htm" last edited 4/28/2008. ©2008  JP Software, Inc.
Keywords: @RUBY,Ruby,_RUBYTYPE,_RUBYVALUE