Forum: Ruby Strange :-o who changes path?

Posted by Prog Rammer (proggrammer)
on 2012-10-01 20:54
path is linux uses '/'
path is windows uses: '\'
then why if I specify path using front slash.. also works well with
windows?
Posted by Bartosz DziewoƄski (matmarex)
on 2012-10-01 21:44
(Received via mailing list)
Because magic. Ruby supports it and it works. I think most Windows
APIs and applications accept /-paths, too.

-- Matma Rex
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.