File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ class Pathname
895895 #
896896 # See FileUtils.mkpath and FileUtils.mkdir_p
897897 #
898- def mkpath : () -> nil
898+ def mkpath : () -> self
899899
900900 # <!--
901901 # rdoc-file=ext/pathname/lib/pathname.rb
@@ -1106,7 +1106,7 @@ class Pathname
11061106 #
11071107 # See FileUtils.rm_rf
11081108 #
1109- def rmtree : () -> void
1109+ def rmtree : () -> self
11101110
11111111 # <!--
11121112 # rdoc-file=ext/pathname/lib/pathname.rb
Original file line number Diff line number Diff line change @@ -458,13 +458,11 @@ def test_mkdir
458458 end
459459
460460 def test_mkpath
461- if_ruby ( ... 3.4 ) do
462- Dir . mktmpdir do |dir |
463- dir = Pathname ( dir )
461+ Dir . mktmpdir do |dir |
462+ dir = Pathname ( dir )
464463
465- assert_send_type '() -> nil ' ,
464+ assert_send_type '() -> Pathname ' ,
466465 dir + 'a/b/c' , :mkpath
467- end
468466 end
469467 end
470468
@@ -644,7 +642,7 @@ def test_rmtree
644642 Dir . mktmpdir do |dir |
645643 target = Pathname ( dir ) . join ( 'target' )
646644 target . mkdir
647- assert_send_type '() -> void ' ,
645+ assert_send_type '() -> Pathname ' ,
648646 target , :rmtree
649647 end
650648 end
You can’t perform that action at this time.
0 commit comments