= private = protected
sub(pattern, *rest, &block)
Return a pathname which is substituted by String#sub.
# File lib/pathname.rb, line 253 def sub(pattern, *rest, &block) self.class.new(@path.sub(pattern, *rest, &block)) end