mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
24 lines
420 B
C
24 lines
420 B
C
|
#include <ruby.h>
|
||
|
|
||
|
static VALUE
|
||
|
bug_i(VALUE i, VALUE arg)
|
||
|
{
|
||
|
rb_notimplement();
|
||
|
return ID2SYM(rb_frame_this_func());
|
||
|
}
|
||
|
|
||
|
static VALUE
|
||
|
bug_start(VALUE self, VALUE hash)
|
||
|
{
|
||
|
VALUE ary = rb_ary_new3(1, Qnil);
|
||
|
rb_block_call(ary, rb_intern("map"), 0, 0, bug_i, self);
|
||
|
return ary;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
Init_bug(void)
|
||
|
{
|
||
|
VALUE mBug = rb_define_module("Bug");
|
||
|
rb_define_module_function(mBug, "start", bug_start, 0);
|
||
|
}
|