class Rake::FileList

def ext(newext='')

+ext+ is a user added method for the Array class.

array.collect { |item| item.ext(newext) }

This method is a shortcut for:

member of the array.
Return a new array with String#ext method applied to each
def ext(newext='')
  collect { |fn| fn.ext(newext) }
end