method

new

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: FileList
new(*patterns) public

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
Show source
Register or log in to add new notes.