static public Method

File.join(...)

File.join(string, ...)  path

Returns a new string formed by joining the strings using File::SEPARATOR.

File.join("usr", "mail", "gumby")   #=> "usr/mail/gumby"

Source Code

/*
*  call-seq:
*     File.join(string, ...) -> path
*  
*  Returns a new string formed by joining the strings using
*  <code>File::SEPARATOR</code>.
*     
*     File.join("usr", "mail", "gumby")   #=> "usr/mail/gumby"
*     
*/

static VALUE
rb_file_s_join(klass, args)
   VALUE klass, args;
{
   return rb_file_join(args, separator);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.