|
|
@ -2,5 +2,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
ruby
|
|
|
|
ruby
|
|
|
|
====
|
|
|
|
====
|
|
|
|
Ruby language plugin, which evaluates the following arguments as a ruby string.
|
|
|
|
Tags:
|
|
|
|
Best used as ``:rb [string]``, for the special parsing mode. Alias ``rb_eval``.
|
|
|
|
:dfhack-keybind:`rb`
|
|
|
|
|
|
|
|
:dfhack-keybind:`rb_eval`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Allow Ruby scripts to be executed. When invoked as a command, you can Eval() a
|
|
|
|
|
|
|
|
ruby string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage::
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enable ruby
|
|
|
|
|
|
|
|
rb "ruby expression"
|
|
|
|
|
|
|
|
rb_eval "ruby expression"
|
|
|
|
|
|
|
|
:rb ruby expression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``:rb puts df.unit_find(:selected).name``
|
|
|
|
|
|
|
|
Print the name of the selected unit.
|
|
|
|