I am using ftools in a ruby ​​1.8 application, how can I make it compatible with ruby ​​1.9

What is the best way to make code using ftools also compatible with 1.9?

+4
source share
1 answer

Use FileUtils . The APIs are not fully compatible, but they are close, and FileUtils is also available for version 1.9.

I would update all the code using ftools to use FileUtils and then smooth out any inconsistencies. It's worth it, FileUtils is here to stay.

+2
source

Source: https://habr.com/ru/post/1337096/


All Articles