Compile any kind of node. Dispatch out to the individual compilation methods based on the type of node.
ed-insert
(vi input: almost all; emacs: printable characters) In insert mode, insert the input character left of the cursor position. In replace mode, overwrite the character at the cursor and move the cursor to the right by one character position. Accept an argument to do this repeatedly. It is an error if the input character is the NUL character (Ctrl-@
). Failure to enlarge the edit buffer also results in an error.
ed-digit
(emacs: 0 to 9) If in argument input mode, append the input digit to the argument being read. Otherwise, call ed-insert
. It is an error if the input character is not a digit or if the existing argument is already greater than a million.
Readline
self-insert
(a, b, A, 1, !, …) Insert yourself.
Creates a thread that scans the tuplespace for expired tuples.
Override to display the default values of the command options. (similar to arguments
, but displays the default values).
For example:
def defaults_str --no-gems-first --no-all end
Add a command-line option and handler to the command.
See Gem::OptionParser#make_switch for an explanation of opts
.
handler
will be called with two values, the value of the argument and the options hash.
If the first argument of add_option
is a Symbol
, it’s used to group options in output. See ‘gem help list` for an example.
Return a sorted list of all command names as strings.