aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/ext/newgem/newgem.c.tt')
-rw-r--r--lib/bundler/templates/newgem/ext/newgem/newgem.c.tt9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt b/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt
new file mode 100644
index 0000000000..8177c4d202
--- /dev/null
+++ b/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt
@@ -0,0 +1,9 @@
+#include "<%= config[:underscored_name] %>.h"
+
+VALUE rb_m<%= config[:constant_array].join %>;
+
+void
+Init_<%= config[:underscored_name] %>(void)
+{
+ rb_m<%= config[:constant_array].join %> = rb_define_module(<%= config[:constant_name].inspect %>);
+}