End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
File.join
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"