[ruby/pathname] Alias value or join to take in old Ruby

https://github.com/ruby/pathname/commit/c501767d12
This commit is contained in:
Hiroshi SHIBATA 2025-06-03 16:01:59 +09:00 committed by git
parent a79e9ab390
commit 8ab4935ddf

View File

@ -9,6 +9,10 @@ class TestPathnameRactor < Test::Unit::TestCase
def test_ractor_shareable
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
class Ractor
alias value take
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
begin;
$VERBOSE = nil
require "pathname"
@ -19,4 +23,3 @@ class TestPathnameRactor < Test::Unit::TestCase
end;
end
end