File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ class Pathname
895
895
#
896
896
# See FileUtils.mkpath and FileUtils.mkdir_p
897
897
#
898
- def mkpath : () -> nil
898
+ def mkpath : () -> self
899
899
900
900
# <!--
901
901
# rdoc-file=ext/pathname/lib/pathname.rb
@@ -1106,7 +1106,7 @@ class Pathname
1106
1106
#
1107
1107
# See FileUtils.rm_rf
1108
1108
#
1109
- def rmtree : () -> void
1109
+ def rmtree : () -> self
1110
1110
1111
1111
# <!--
1112
1112
# rdoc-file=ext/pathname/lib/pathname.rb
Original file line number Diff line number Diff line change @@ -458,13 +458,11 @@ def test_mkdir
458
458
end
459
459
460
460
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 )
464
463
465
- assert_send_type '() -> nil ' ,
464
+ assert_send_type '() -> Pathname ' ,
466
465
dir + 'a/b/c' , :mkpath
467
- end
468
466
end
469
467
end
470
468
@@ -644,7 +642,7 @@ def test_rmtree
644
642
Dir . mktmpdir do |dir |
645
643
target = Pathname ( dir ) . join ( 'target' )
646
644
target . mkdir
647
- assert_send_type '() -> void ' ,
645
+ assert_send_type '() -> Pathname ' ,
648
646
target , :rmtree
649
647
end
650
648
end
You can’t perform that action at this time.
0 commit comments