#[macro_use]
extern crate helix;

ruby! {
    class Console {
        def log(string: &str) {
            println!("LOG: {:?}", string);
        }
    }
}
require "console"
Console.log("I'm in your Rust")
# => LOG: "I'm in your Rust"

Source: Helix: Native Ruby Extensions Without Fear