You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#include <ruby.h>
|
|
|
|
static VALUE
|
|
m_hello (VALUE self)
|
|
{
|
|
return rb_str_new2("Hello World");
|
|
}
|
|
|
|
void
|
|
Init_mytest_ext (void)
|
|
{
|
|
VALUE mTest = rb_define_module ("MytestInt");
|
|
|
|
rb_define_module_function (mTest, "hello", m_hello, 0);
|
|
}
|