Ruby
1.9.3p484(2013-11-22revision43786)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
bug-3571
bug.c
Go to the documentation of this file.
1
#include <ruby.h>
2
3
static
VALUE
4
bug_i
(
VALUE
i
,
VALUE
arg
)
5
{
6
rb_notimplement
();
7
return
ID2SYM
(
rb_frame_this_func
());
8
}
9
10
static
VALUE
11
bug_start
(
VALUE
self
,
VALUE
hash
)
12
{
13
VALUE
ary =
rb_ary_new3
(1,
Qnil
);
14
rb_block_call
(ary,
rb_intern
(
"map"
), 0, 0,
bug_i
,
self
);
15
return
ary;
16
}
17
18
void
19
Init_bug
(
void
)
20
{
21
VALUE
mBug =
rb_define_module
(
"Bug"
);
22
rb_define_module_function
(mBug,
"start"
,
bug_start
, 0);
23
}
24
Generated on Fri Nov 22 2013 07:03:56 for Ruby by
1.8.3