each_child(with_directory=true, &b)
Instance Public methods
Iterates over the children of the directory (files and subdirectories, not
recursive).
It yields Pathname object for each child.
By default, the yielded pathnames will have enough information to access
the files.
If you set with_directory to false, then the
returned pathnames will contain the filename only.
Pathname("/usr/local").each_child {|f| p f }
#=> #<Pathname:/usr/local/share>
# #<Pathname:/usr/loc