typed_struct (rubygems): All the flexibility of a Ruby Struct, but with type checking on its properties. Also benefit from being able to define complex types using RBS type notation.
Keywords: rbs|ruby|struct|type-checking|type-definitions