# including files, hidden files, and other directories, one array element per entry. # I'll apply Array's each method to the output of entries: Dir.entries( "/usr/local/src/ruby-1.8.6" ).each { |e| puts e }