I believe this is a part of 3.2 and not 3.1?
Couldn’t find it in the docs anyway.
back
1 comments
Yes, the post is wrong (to reference 3.1):
It seems to have been around unofficially for some time before that even. https://stackoverflow.com/q/7306004/580412
> @nobu (Nobuyoshi Nakada) proposed Data, which used to be a class for extension library authors, but deprecated since ruby 2.5 and removed since 3.0. We might reuse it now.
https://bugs.ruby-lang.org/issues/16122
Ed:
https://ruby-doc.org/core-2.5.0/Data.html
> Data
> This is a deprecated class, base class for C extensions using Data_Make_Struct or Data_Wrap_Struct.
Vs
https://ruby-doc.org/core-2.4.0/Data.html
> Data
> This is a recommended base class for C extensions using Data_Make_Struct or Data_Wrap_Struct, see doc/extension.rdoc for details.