summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-09-25 21:17:06 -0400
committerMarc-André Lafortune <github@marc-andre.ca>2020-09-30 18:11:24 -0400
commit0977040133c53be92713e9054b491a0b3649e148 (patch)
treefdf72b3ab46bd7c5b240f51670057c6f30b41402 /lib
parent083fa6e5d22ea7eb9026a4e33e31a1d8abbce7f8 (diff)
[ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareable
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3593
Diffstat (limited to 'lib')
-rw-r--r--lib/ostruct.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 8cfccb0dfb..d2e93b1463 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -62,6 +62,8 @@
# first_pet # => #<OpenStruct name="Rowdy">
# first_pet == second_pet # => true
#
+# Ractor compatibility: A frozen OpenStruct with shareable values is itself shareable.
+#
# == Caveats
#
# An OpenStruct utilizes Ruby's method lookup structure to find and define the