Module: Ruber::CommandPlugin

Defined in:
plugins/command/command.rb,
plugins/command/output.rb

Overview

Plugin which allows to evaluate some ruby code from within the Ruber environment, thus effectively giving Ruber commands (this is different from the Ruby Runner plugin, which simply starts a new ruby interpreter and runs a script in it).

This plugin doesn’t provide a plugin class but just a tool widget where the user can enter the code and a button to execute it. It also doesn’t provide any API for the feature. Beside the editor widget, the plugin also provides an output widget, where the text written to standard output and standard error by the code executed will be displayed.

Note: the ruby code is executed in the top level context. Any exception raised by the code won’t cause Ruber to crash, but will be displayed in a dialog.

Defined Under Namespace

Classes: Output, ToolWidget