Project

General

Profile

Actions

Bug #22288

closed

doc: 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

Added by akim2 (Akim Demaille) about 2 months ago. Updated about 2 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:126559]

Updated by carlospohlod (Carlos Daniel Pohlod) about 2 months ago Actions #1

  • Status changed from Open to Closed

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]

Updated by hsbt (Hiroshi SHIBATA) about 2 months ago Actions #2

Pathname#rmtree returns self, not 0. Fixed in git|df3acf49fc203a5dadc0d8a21c56eeb148986f94 and shipping in Ruby 4.1.0.

Actions

Also available in: PDF Atom