Ruby 3.2 adds a new core class called Data to represent simple immutable value objects
Ruby 3.2 adds a new core class called Data to represent simple immutable value objects. The Data class helps define simple classes for value-alike objects that can be extended with custom methods.
Source: Ruby adds a new core class called Data to represent simple immutable value objects
Something to keep in mind on Ruby 3.2!