mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/uri] Add proper Ractor support to URI
* Using a module to map scheme name to scheme class, which also works with Ractor.
* No constant redefinition, no ObjectSpace, still fast lookup for initial schemes.
883567fd81
This commit is contained in:
parent
090d799c24
commit
1cf111774f
12 changed files with 60 additions and 18 deletions
|
@ -90,5 +90,5 @@ module URI
|
|||
end
|
||||
end
|
||||
|
||||
@@schemes['FILE'] = File
|
||||
register_scheme 'FILE', File
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue