Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 235 Bytes
#include <ruby.h>
static VALUE
hello_to_s(VALUE self)
{
return rb_str_new_cstr("Hello");
}
void
Init_hello(void)
{
VALUE hello;
hello = rb_define_class("Hello", rb_cObject);
rb_define_method(hello, "to_s", hello_to_s, 0);
}
You can’t perform that action at this time.