Textadept
- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List
Contents
_M.ruby
The ruby module.
It provides utilities for editing Ruby code.
User tags are loaded from _USERHOME/modules/ruby/tags
and user apis are
loaded from _USERHOME/modules/ruby/api
.
Functions
goto_required
()
Determine the Ruby file being ‘require’d, and search through the RUBYPATH for that file and open it in Textadept.
set_buffer_properties
()
Sets default buffer properties for Ruby files.
toggle_block
()
Toggles between { … } and do … end Ruby blocks. If the caret is inside a { … } single-line block, that block is converted to a multiple-line do .. end block. If the caret is on a line that contains single-line do … end block, that block is converted to a single-line { … } block. If the caret is inside a multiple-line do … end block, that block is converted to a single-line { … } block with all newlines replaced by a space. Indentation is important. The ‘do’ and ‘end’ keywords must be on lines with the same level of indentation to toggle correctly
try_to_autocomplete_end
()
Tries to autocomplete Ruby’s ‘end’ keyword for control structures like ‘if’, ‘while’, ‘for’, etc.
See also:
Tables
_G.keys.ruby
Container for Ruby-specific key commands.
_G.snippets.ruby
Container for Ruby-specific snippets.
control_structure_patterns
Patterns for auto ‘end’ completion for control structures.
See also: