Forum: Ruby on Rails Inheritance VS DelegateClass

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eric G. (Guest)
on 2009-03-07 03:06
Im trying to understand why TempFile extends from DelegateClass(File)
instead of just file.

Is it because they didn't want all the functions that come with the File
class and just limit it.

Why even have the DelegateClass, why not just inherit from the class. I
know I'm missing something, just not quite sure what.
This topic is locked and can not be replied to.