= private = protected
rewind()
Repositions dir to the first entry.
d = Dir.new("testdir") d.read #=> "." d.rewind #=> #<Dir:0x401b3fb0> d.read #=> "."
static VALUE dir_rewind(VALUE dir) { struct dir_data *dirp; if (rb_safe_level() >= 4 && !OBJ_UNTRUSTED(dir)) { rb_raise(rb_eSecurityError, "Insecure: can't close"); } GetDIR(dir, dirp); rewinddir(dirp->dir); return dir; }