Module modules.ruby.commands

Commands for the ruby module. There are several option variables used: PLATFORM: OS platform (linux or windows). FILE_IN: Location of the temporary file used as STDIN for various operations. FILE_OUT: Location of the temporary file that will contain output for various operations. REDIRECT: The command line symbol used for redirecting STDOUT to a file.

Functions

autocomplete (char) Perform method autocompletion via rcodetools.
goto_required () Determine the Ruby file being 'require'd, and search through the RUBYPATH for that file and open it in SciTE.
ri_doc () Print ri documentation via rcodetools to the SciTE output pane.
toggle_block () Toggles between brace and do..end style Ruby blocks.
try_to_autocomplete_end () Try to autocomplete Lua's 'end' keyword for control structures like 'if', 'while', 'for', etc.

Tables

control_structure_patterns Patterns for auto 'end' completion for control structures.


Functions

autocomplete (char)
Perform method autocompletion via rcodetools. WARNING: rcodetools EXECUTES code to do its method completion.

Parameters

  • char:
goto_required ()
Determine the Ruby file being 'require'd, and search through the RUBYPATH for that file and open it in SciTE.
ri_doc ()
Print ri documentation via rcodetools to the SciTE output pane.
toggle_block ()
Toggles between brace and do..end style Ruby blocks. If no text is selected, the single-line brace style block is assumed to be on the current line. It is converted into a do..end style block. If text is selected, the entire lines the beginning and end of the selection are on are searched for a 'do' and 'end'. When found, they are replaced by braces.
try_to_autocomplete_end ()
Try to autocomplete Lua's 'end' keyword for control structures like 'if', 'while', 'for', etc.

See also:

Tables

control_structure_patterns
Patterns for auto 'end' completion for control structures.

Valid XHTML 1.0!