Take Command / TCC Help v. 13.03
@RUBYNot in LE
Hide Navigation Pane
@RUBYNot in LE
Previous topic Next topic No directory for this topic No expanding text in this topic  
@RUBYNot in LE
Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@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.

Comments (...)