Implement Pathname#chdir
As it was introduced into Ruby 3.3 as Dir#chdir, and was requested before that in #25.
Pathname#chdir already existed in ruby till 1.9.1, was obsoleted in 1.8.1 preview and removed in 1.9.2 preview
@toy Interesting. Do you know the justification? (The obsoleting commit doesn't link to the tracker ticket or ruby-core email discussion) :thinking:
@zverok I remember being frustrated about the change and that justification was something about the method being misplaced, but I failed now to find any more information about it
https://blade.ruby-lang.org/ruby-core/21564
@hsbt That one is about removal of methods already marked obsolete, but not why were they marked obsolete
@hsbt Any updates on this?.. It is a bit weird now that (more simple) Dir object has this method after Ruby 3.3, but (more advanced) Pathname doesn’t.
see https://github.com/ruby/pathname/issues/25#issuecomment-2392655732