method

close

v1_8_7_72 - Show latest stable - Class: Dir
close()
public

Closes the directory stream. Any further attempts to access dir will raise an IOError.

   d = Dir.new("testdir")
   d.close   #=> nil