Go to the source code of this file.
◆ ruby_options
◆ ruby_run_node
◆ goruby_options()
Definition at line 29 of file goruby.c.
References argc, argv, close(), dup(), dup2(), isatty(), n, NULL, pipe(), ruby_options, and write().
◆ goruby_run_node()
◆ Init_golf()
◆ ruby_init_ext()
◆ ruby_options()
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 115 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 327 of file eval.c.