Not found
The exact documentation you were looking for could not be found. Here is the best guess.
close()
public
Closes the directory stream. Any further attempts to access dir
will raise an IOError.
d = Dir.new("testdir")
d.close
Show source
static VALUE
dir_close(VALUE dir)
{
struct dir_data *dirp;
GetDIR(dir, dirp);
closedir(dirp->dir);
dirp->dir = NULL;
return Qnil;
}