method

rewind

v1_8_6_287 - 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     #=> "."