Sha256: 15c5bf97969d3906706e42bb25f563821a3a6c5b8ac62dccfe5867bb83794ee3
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
#include <ruby.h> VALUE SimpleCModule = Qnil; VALUE simple_module_simple_method() { return INT2NUM(1); } void Init_simp() { SimpleCModule = rb_define_module("SimpleC"); rb_define_module_function(SimpleCModule, "simple", simple_module_simple_method, 0 ); }
Version data entries
5 entries across 5 versions & 1 rubygems