diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-03 16:01:59 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-06-03 08:40:55 +0000 |
commit | 8ab4935ddff38da632624945db97c251abd103d3 (patch) | |
tree | e0be23705f1419e87a01155312ebaef5613b5117 | |
parent | a79e9ab3907160054386b597e79c8ef6c60faf16 (diff) |
[ruby/pathname] Alias value or join to take in old Ruby
https://github.com/ruby/pathname/commit/c501767d12
-rw-r--r-- | test/pathname/test_ractor.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pathname/test_ractor.rb b/test/pathname/test_ractor.rb index 340692df79..f06b7501f3 100644 --- a/test/pathname/test_ractor.rb +++ b/test/pathname/test_ractor.rb @@ -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 - |