ruru 0.9.3

Native Ruby extensions in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ruby_sys::rproc;

use binding::global::RubySpecialConsts;
use types::{Argc, InternalValue, Value};

pub fn call(rproc: Value, argc: Argc, argv: *const Value) -> Value {
    unsafe {
        rproc::rb_proc_call_with_block(rproc,
                                       argc,
                                       argv,
                                       Value::from(RubySpecialConsts::Nil as InternalValue))
    }
}