Skip to content

Commit 3acbfce

Browse files
committed
Alias value or join to take in old Ruby
1 parent 9fc4b71 commit 3acbfce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/io/wait/test_ractor.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def test_ractor
77
ext = "/io/wait.#{RbConfig::CONFIG['DLEXT']}"
88
path = $".find {|path| path.end_with?(ext)}
99
assert_in_out_err(%W[-r#{path}], <<-"end;", ["true"], [])
10+
class Ractor
11+
alias value take
12+
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
13+
1014
$VERBOSE = nil
1115
r = Ractor.new do
1216
$stdout.equal?($stdout.wait_writable)

0 commit comments

Comments
 (0)