[ruby/uri] Alias value or join to take in old Ruby
https://github.com/ruby/uri/commit/443ed0cf85
This commit is contained in:
parent
6609ba0514
commit
a79e9ab390
@ -74,6 +74,9 @@ class URI::TestCommon < Test::Unit::TestCase
|
||||
def test_ractor
|
||||
return unless defined?(Ractor)
|
||||
assert_ractor(<<~RUBY, require: 'uri')
|
||||
class Ractor
|
||||
alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
|
||||
end
|
||||
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
|
||||
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.value)
|
||||
RUBY
|
||||
|
Loading…
x
Reference in New Issue
Block a user