D
Dafydd Fontenot
I got this oneliner that isn't producing the output I was expecting (it
printing all of the directories in the linux root directory).
irb(main):012:0> Dir.new("/").each { |name| puts name if
File.directory?(name) }
..
printing all of the directories in the linux root directory).
irb(main):012:0> Dir.new("/").each { |name| puts name if
File.directory?(name) }
..