method

sub

v1_9_2_180 - Show latest stable - Class: Pathname
sub(pattern, *rest, &block)
public

Return a pathname which is substituted by String#sub.