Now, after about 2 weeks of learning Ruby and Rails, I found the File class for things like File.join , File.open , etc. Then I came across the need only for File.copy to find out that such a method does not exist. A little more looking Rails FileUtils class, and now I'm a little confused.
Of course, there are differences, but there is something that seems redundant. Is preferred over others where there are differences? Why do both exist (only to handle omissions in the main Ruby class)?
I just wanted to understand how these things work together or conflict, so I know how to move forward.
Thanks.
ruby ruby-on-rails
Rob wilkerson
source share