Actions
Bug #22288
closeddoc: Pathname: rmtree is claimed to return 0, it actually returns self
Bug #22288:
doc: Pathname: rmtree is claimed to return 0, it actually returns self
Actions
Added by akim2 (Akim Demaille) 24 days ago. Updated 19 days ago.
Applied in changeset git|df3acf49fc203a5dadc0d8a21c56eeb148986f94.
[DOC] Pathname#rmtree returns self, not 0
The call-seq and the prose both claimed the method returns 0, but it
returns self, and has since [Feature #17294] made mkpath and rmtree
chainable. test_rmtree asserts it.
Also document the keyword arguments, which the call-seq omitted.
Fixes [Bug #22288]
Pathname#rmtree returns self, not 0. Fixed in git|df3acf49fc203a5dadc0d8a21c56eeb148986f94 and shipping in Ruby 4.1.0.