class Pathname

def pathmap(spec=nil, &block)

This Pathname extension comes from Rake

details.)
new Pathname with the modified paths. (See String#pathmap for
Apply the pathmap spec to the Pathname, returning a
def pathmap(spec=nil, &block)
  Pathname.new(Rake.from_pathname(self).pathmap(spec, &block))
end