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:

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
2015-04-30 05:48:03
Comments
Leave a Comment

Please login to continue.