Sha256: 30ff3e4fe1184c644a353534b922b307b7ac64b9d8ebf09c7c39fba451b65266
Contents?: true
Size: 294 Bytes
Versions: 19
Compression:
Stored size: 294 Bytes
Contents
fn hello(subject: String) -> String { format!("hello, {}", subject) } fn main() { let _cleanup = unsafe { magnus::embed::init() }; magnus::define_global_function("hello", magnus::function!(hello, 1)); magnus::eval::<magnus::value::Qnil>(r#"puts hello("world")"#).unwrap(); }
Version data entries
19 entries across 19 versions & 1 rubygems