Ruru's PlayGround :)
# directory access# list all files but .*/*~/*.odirp = Dir.open(".")for f in dirp case f when /^\./, /~$/, /\.o/ # do not print else print f, "\n" endenddirp.close