00001 #include <ruby.h>
00002
00003 static VALUE
00004 bug_i(VALUE i, VALUE arg)
00005 {
00006 rb_notimplement();
00007 return ID2SYM(rb_frame_this_func());
00008 }
00009
00010 static VALUE
00011 bug_start(VALUE self, VALUE hash)
00012 {
00013 VALUE ary = rb_ary_new3(1, Qnil);
00014 rb_block_call(ary, rb_intern("map"), 0, 0, bug_i, self);
00015 return ary;
00016 }
00017
00018 void
00019 Init_bug(void)
00020 {
00021 VALUE mBug = rb_define_module("Bug");
00022 rb_define_module_function(mBug, "start", bug_start, 0);
00023 }
00024