Method: FileList#ext

Defined in:
lib/filelist.rb

#ext(newext = '') ⇒ Object

Return a new array with String#ext method applied to each member of the array.

This method is a shortcut for:

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

ext is a user added method for the Array class.



299
300
301
# File 'lib/filelist.rb', line 299

def ext(newext='')
  collect { |fn| fn.ext(newext) }
end