Module magnus::embed

source ·
Available on crate feature embed only.
Expand description

Helpers for use when embedding Ruby in a Rust project.

See also Ruby for more embedding related methods.


  • A guard value that will run the cleanup function for the Ruby VM when dropped.


  • init
    Initialises the Ruby VM.
  • Sets the current script name.
  • Performs basic initialisation of the Ruby VM.