From: "J. Ryan Sobol" Date: 2006-01-06T11:49:50+09:00 Subject: Re: Newbie - Problem Two - Ruby and Form Variables, re-loading like PHP_SELF Thanks James. :) ~ ryan ~ On Jan 5, 2006, at 8:26 PM, James Edward Gray II wrote: > On Jan 5, 2006, at 6:22 PM, J. Ryan Sobol wrote: > >> basename() is a PHP function, not a Ruby one. > > $ ri -T File::basename > --------------------------------------------------------- > File::basename > File.basename(file_name [, suffix] ) -> base_name > ---------------------------------------------------------------------- > -- > Returns the last component of the filename given in file_name, > which must be formed using forward slashes (``/'') regardless of > the separator used on the local file system. If suffix is given > and present at the end of file_name, it is removed. > > File.basename("/home/gumby/work/ruby.rb") #=> > "ruby.rb" > File.basename("/home/gumby/work/ruby.rb", ".rb") #=> "ruby" > > > James Edward Gray II >