method

foreach

foreach(path = nil, *rs)
public

See IO.foreach when path is a file.

See Dir.foreach when path is a directory.