# File lib/fakefs/pathname.rb, line 132 def sub_ext(repl) ext = File.extname(@path) self.class.new(@path.chomp(ext) + repl) end