Answer by Mladen Jablanović for When is File.join useful? →
There is another, subtle difference:
File.join('foo','bar')
#=> "foo/bar"
['foo','bar'].join('/')
#=> "foo/bar"
But, if you pass an argument already ending with / (which is quite often when…