new

new(*patterns)
Class Public methods

Create a file list from the globbable patterns given. If you wish to perform multiple includes or excludes at object build time, use the âyield selfâ pattern.

Example:

1
2
3
4
5
file_list = FileList.new('lib   /*.rb', 'test/test*.rb')
 
pkg_files = FileList.new('lib/   *') do |fl|
  fl.exclude(/\bCVS\b/)
end
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.