Clean file separators in Ruby without File.join
- by kerry
I love anything that can be done to clean up source code and make it more readable. So, when I came upon this post, I was pretty excited. This is precisely the kind of thing I love.
I have never felt good about ‘file separator’ strings b/c of their ugliness and verbosity.
In Java we have:
1: String path =…