From: -lim- Date: 2009-02-25T00:06:53+09:00 Subject: Re: what is best idiom to remove file extension --00163630f1dfab35f70463ab7a70 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > > full pathname with no extension: > > File.expand_path(File.basename(fname, File.extname(fname)) File.basename(fname, '.*') would be shorter. It also handles file names like ".vimrc" correctly. -- The end is here --> --00163630f1dfab35f70463ab7a70--