diff --git a/lib/ostruct.rb b/lib/ostruct.rb index 8680374499..ecfacd10fb 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -227,7 +227,7 @@ class OpenStruct ::Ractor.make_shareable(getter_proc) ::Ractor.make_shareable(setter_proc) end - define_singleton_method!(name, &getter_proc) + define_singleton_method!(name, &getter_proc) define_singleton_method!("#{name}=", &setter_proc) end end