= private = protected
foreach(path = nil, *rs)
See IO.foreach when path is a file.
See Dir.foreach when path is a directory.
# File lib/shell/command-processor.rb, line 92 def foreach(path = nil, *rs) path = "." unless path path = expand_path(path) if File.directory?(path) Dir.foreach(path){|fn| yield fn} else IO.foreach(path, *rs){|l| yield l} end end