method

rewind

v1_9_3_125 - Show latest stable - Class: Dir
rewind()
public

Repositions dir to the first entry.

d = Dir.new("testdir")
d.read     #=> "."
d.rewind   #=> #<Dir:0x401b3fb0>
d.read     #=> "."