method

close

v1_9_3_125 - 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