class Pathname

Public Instance Methods

ext(newext='') click to toggle source

Return a new Pathname with String#ext applied to it.

This Pathname extension comes from Rake

# File lib/rake/ext/pathname.rb, line 10
def ext(newext='')
  Pathname.new(Rake.from_pathname(self).ext(newext))
end
pathmap(spec=nil, &block) click to toggle source

Apply the pathmap spec to the Pathname, returning a new Pathname with the modified paths. (See String#pathmap for details.)

This Pathname extension comes from Rake

# File lib/rake/ext/pathname.rb, line 21
def pathmap(spec=nil, &block)
  Pathname.new(Rake.from_pathname(self).pathmap(spec, &block))
end