Skip to content

Commit a6127e5

Browse files
committed
Alias value or join to take in old Ruby
1 parent 5de98cc commit a6127e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/stringio/test_ractor.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ def setup
88

99
def test_ractor
1010
assert_in_out_err([], <<-"end;", ["true"], [])
11+
class Ractor
12+
alias value take
13+
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
14+
1115
require "stringio"
1216
$VERBOSE = nil
1317
r = Ractor.new do

0 commit comments

Comments
 (0)