Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
File.join
(*::path) -> ::String
File.join(string, ...) → string
file.c
View on GitHub ↗
static VALUE
rb_file_s_join(VALUE klass, VALUE args)
{
return rb_file_join(args);
}
Returns a new string formed by joining the strings using "/".
Example
File.join("usr", "mail", "gumby") #=> "usr/mail/gumby"