Skip to content

Commit c501767

Browse files
committed
Alias value or join to take in old Ruby
1 parent e2a7446 commit c501767

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/pathname/test_ractor.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ def setup
99

1010
def test_ractor_shareable
1111
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
12+
class Ractor
13+
alias value take
14+
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
15+
1216
begin;
1317
$VERBOSE = nil
1418
require "pathname"
@@ -19,4 +23,3 @@ def test_ractor_shareable
1923
end;
2024
end
2125
end
22-

0 commit comments

Comments
 (0)