method

sub

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: FileList
sub(pat, rep) public

Return a new FileList with the results of running sub against each element of the original list.

Example:

FileList['a.c', 'b.c'].sub(/\.c$/, '.o')  => ['a.o', 'b.o']
Show source
Register or log in to add new notes.