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 |
Please login to continue.