Module: Bug::EnumeratorKw

Defined in:
ext/-test-/enumerator_kw/enumerator_kw.c

Instance Method Summary collapse

Instance Method Details

#m(*args) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'ext/-test-/enumerator_kw/enumerator_kw.c', line 3

static VALUE
enumerator_kw(int argc, VALUE *argv, VALUE self)
{
    VALUE opt, enum_args[4];
    enum_args[0] = Qnil;
    enum_args[1] = Qnil;
    rb_scan_args(argc, argv, "01*:", enum_args, enum_args+1, &opt);
    enum_args[3] = self;
    enum_args[2] = opt;
    RETURN_SIZED_ENUMERATOR_KW(self, 4, enum_args, 0, RB_NO_KEYWORDS);
    return rb_yield_values_kw(4, enum_args, RB_NO_KEYWORDS);
}