blob: b2e3c88b6d46fcf5d1902debe40a7d7b0dc09e87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
static VALUE binding_spec_get_binding(VALUE self) {
return rb_funcall(self, rb_intern("binding"), 0);
}
void Init_binding_spec(void) {
VALUE cls = rb_define_class("CApiBindingSpecs", rb_cObject);
rb_define_method(cls, "get_binding", binding_spec_get_binding, 0);
}
#ifdef __cplusplus
}
#endif
|