#include <ruby_reference.hpp>
Public Types | |
typedef void(* | Ruby_Data_Func )(T *obj) |
A function that takes a T* and returns void. | |
Static Public Member Functions | |
VALUE | wrap (VALUE klass, Ruby_Data_Func mark, Ruby_Data_Func free, T *obj) |
Takes an instance of a builtin ruby type and wraps it. | |
T * | unwrap (VALUE value) |
|
Takes Ruby object holding an instance of a builtin ruby type and unwraps it to a structure. If the object is of the wrong type, a C++ exception is thrown. |