file-find¶
The file-find library replaces the old find module in MRI because it was little more than a glorified Dir.glob call. The file-find library is based on the typical find command found on Unix systems (though it works on MS Windows as well).
Synopsis¶
require 'file/find'
rule = File::Find.new(
:pattern => "*.rb",
:follow => false,
:path => ['/usr/local/lib', '/opt/local/lib']
)
rule.find{ |f|
puts f
}