We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324a7d5 commit 443ed0cCopy full SHA for 443ed0c
test/uri/test_common.rb
@@ -74,6 +74,9 @@ def test_extract
74
def test_ractor
75
return unless defined?(Ractor)
76
assert_ractor(<<~RUBY, require: 'uri')
77
+ class Ractor
78
+ alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
79
+ end
80
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
81
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.value)
82
RUBY
0 commit comments