From: Tanaka Akira Date: 2006-03-28T00:17:55+09:00 Subject: Re: PATCH: A subclassable Pathname In article <92f5f81d0603262350k796fe48fp2224b9f2108ac507@mail.gmail.com>, "Evan Phoenix" writes: > A simply change (changing all references of "Pathname.new" to > "self.class.new") allows for an easily subclassable Pathname. I doubt > I need to explain why thats a good thing. It's acceptable for the instance methods which doesn't take a Pathname argument. However I think it's not so simple for the methods which take a Pathname argument: +, join, relative_path_from Apart from that class methods should not use self.class: Pathname.glob, Pathname.getwd -- Tanaka Akira