Go to the source code of this file.
◆ ruby_options
◆ ruby_run_node
◆ goruby_options()
void* goruby_options |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ goruby_run_node()
int goruby_run_node |
( |
void * |
arg | ) |
|
◆ Init_golf()
◆ ruby_init_ext()
◆ ruby_options()
RUBY_EXTERN void* ruby_options |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Processes command line arguments and compiles the Ruby source to execute.
This function does:
- Processes the given command line flags and arguments for ruby(1)
- compiles the source code from the given argument, -e or stdin, and
- returns the compiled source as an opaque pointer to an internal data structure
- Returns
- an opaque pointer to the compiled source or an internal special value.
- See also
- ruby_executable_node().
Definition at line 97 of file eval.c.
◆ ruby_run_node()
Runs the given compiled source and exits this process.
- Return values
-
0 | if successfully run the source |
non-zero | if an error occurred. |
Definition at line 295 of file eval.c.