method

children

v2_6_3 - Show latest stable - Class: Dir
children()
public

Returns an array containing all of the filenames except for “.” and “..” in this directory.

d = Dir.new("testdir")
d.children   #=> ["config.h", "main.rb"]