K
Kenneth McDonald
Ruby has an abstract File/path type which is nice (I'm mainly a Python
user and it doesn't), but it doesn't seem to provide object-oriented
methods to combine file paths, i.e. I can't go path3 = path1/path2 or
something similar. Instead, I have to use the join function, which is
much less elegant, IMHO. Am I missing something. Has someone written
an extension to File that adds such path operations?
Thanks,
Ken
user and it doesn't), but it doesn't seem to provide object-oriented
methods to combine file paths, i.e. I can't go path3 = path1/path2 or
something similar. Instead, I have to use the join function, which is
much less elegant, IMHO. Am I missing something. Has someone written
an extension to File that adds such path operations?
Thanks,
Ken