Sha256: 99d291576ed4e558e2f39ec9ac9dc673c6586e3dde30afac4ab923497e0e92bf
Contents?: true
Size: 213 Bytes
Versions: 19
Compression:
Stored size: 213 Bytes
Contents
use magnus::block::Proc; #[test] fn it_calls_proc() { let ruby = unsafe { magnus::embed::init() }; let p: Proc = ruby.eval("Proc.new {|i| i + 1}").unwrap(); assert_eq!(43, p.call((42,)).unwrap()); }
Version data entries
19 entries across 19 versions & 1 rubygems