Sha256: bd58f701357dfa36b22dd5086de2f7f76daba1d5da7964089d3c62e0a80871a0
Contents?: true
Size: 324 Bytes
Versions: 19
Compression:
Stored size: 324 Bytes
Contents
fn hello(subject: String) -> String { format!("hello, {}", subject) } fn main() { magnus::Ruby::init(|ruby| { ruby.define_global_function("hello", magnus::function!(hello, 1)); ruby.eval::<magnus::value::Qnil>(r#"puts hello("world")"#) .unwrap(); Ok(()) }) .unwrap() }
Version data entries
19 entries across 19 versions & 1 rubygems