diff options
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -570,6 +570,14 @@ dir_s_glob(dir, str) } if (buf != buffer) free(buf); + if (rb_iterator_p()) { + long len = RARRAY(ary)->len; + VALUE *ptr = RARRAY(ary)->ptr; + + while (len--) { + rb_yield(*ptr++); + } + } return ary; } |