class Rake::FileList
def gsub(pat, rep)
=> ['lib\\test\\file', 'x\\y']
FileList['lib/test/file', 'x/y'].gsub(/\//, "\\")
Example:
element of the original list.
Return a new FileList with the results of running +gsub+ against each
def gsub(pat, rep) inject(FileList.new) { |res, fn| res << fn.gsub(pat,rep) } end