From ca0f2a0050cac09428c7a178852aafe464fe39b4 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 4 Oct 2024 11:53:07 +0900 Subject: [PATCH] Pathname#mkpath and Pathname#rmtree returns self from Ruby 3.4 --- stdlib/pathname/0/pathname.rbs | 4 ++-- test/stdlib/Pathname_test.rb | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/stdlib/pathname/0/pathname.rbs b/stdlib/pathname/0/pathname.rbs index a1923c2ea..1b699a7c1 100644 --- a/stdlib/pathname/0/pathname.rbs +++ b/stdlib/pathname/0/pathname.rbs @@ -895,7 +895,7 @@ class Pathname # # See FileUtils.mkpath and FileUtils.mkdir_p # - def mkpath: () -> nil + def mkpath: () -> self #