Flowdock
method

sub

Importance_1
Ruby latest stable (v1_9_3_392) - 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.