Function ruby_options

Source
pub unsafe extern "C" fn ruby_options(
    argc: c_int,
    argv: *mut *mut c_char,
) -> *mut c_void
Expand description

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

§@param[in] argc Process main’s argc. @param[in] argv Process main’s argv. @return An opaque pointer to the compiled source or an internal special value. Pass it to ruby_executable_node() to detect which. @see ruby_executable_node

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3