method

sub

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

Return a pathname which is substituted by String#sub.