Show/Hide Toolbars

Take Command / TCC Help v. 21

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