Ruby File Path Separators
File path separators on Unix systems and Windows are different. On Unix, a forward slash / is used and on Windows a backslash \ is used. However, when writing Ruby code you don’t need to worry about this; Just use the forward slash / character and it will be cross-platform for you. An even better […]