Sha256: ac18b42cf8d9fb1ffe8a18391869237a90bf1009e9a291bbbf90869fe038881e
Contents?: true
Size: 238 Bytes
Versions: 19
Compression:
Stored size: 238 Bytes
Contents
use magnus::RString; #[test] fn it_converts_to_ref_str() { let ruby = unsafe { magnus::embed::init() }; unsafe { let s: RString = ruby.eval("'hello'").unwrap(); assert_eq!("hello", s.as_str().unwrap()); } }
Version data entries
19 entries across 19 versions & 1 rubygems