diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-03 15:52:40 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-06-03 06:57:30 +0000 |
commit | 9991edcc41ad55cf79626035637915f1c5d664fb (patch) | |
tree | 93f74b7e1c780e9da3d7fa4e8e1507644de34932 | |
parent | 52d85c0efb8871ed2e29738c8edf60cc0fa034c3 (diff) |
[ruby/digest] Alias value to take in old Ruby
https://github.com/ruby/digest/commit/1eaee7d4fe
-rw-r--r-- | test/digest/test_ractor.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/digest/test_ractor.rb b/test/digest/test_ractor.rb index ebb89f3d99..d7b03eaeba 100644 --- a/test/digest/test_ractor.rb +++ b/test/digest/test_ractor.rb @@ -15,6 +15,10 @@ module TestDigestRactor def test_s_hexdigest assert_in_out_err([], <<-"end;", ["true", "true"], []) + class Ractor + alias value take + end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders + $VERBOSE = nil require "digest" require "#{self.class::LIB}" |