Merge pull request #17322 from Homebrew/rmtree_comment
extend/pathname/rmtree: improve comment.
This commit is contained in:
commit
ae914f6255
@ -8,6 +8,10 @@ class Pathname
|
|||||||
#
|
#
|
||||||
# @api public
|
# @api public
|
||||||
def rmtree(noop: nil, verbose: nil, secure: nil)
|
def rmtree(noop: nil, verbose: nil, secure: nil)
|
||||||
|
# Ideally we'd odeprecate this but probably can't given gems so let's
|
||||||
|
# create a RuboCop autocorrect instead soon.
|
||||||
|
# This is why monkeypatching is non-ideal (but right solution to get
|
||||||
|
# Ruby 3.3 over the line).
|
||||||
# odeprecated "rmtree", "FileUtils#rm_r"
|
# odeprecated "rmtree", "FileUtils#rm_r"
|
||||||
FileUtils.rm_r(@path, noop:, verbose:, secure:)
|
FileUtils.rm_r(@path, noop:, verbose:, secure:)
|
||||||
nil
|
nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user