If you just need to pass data around in something more rigid than a hash, you can use a struct:
someone = Struct.new(*%i[name age craze whatever]).new(?Ô, 128, {color: :pink}, :nevermind)
Or even an open struct for more flexibility, if performance is not critical and an additional require doesn’t matter.https://ruby-doc.org/stdlib-3.1.0/libdoc/ostruct/rdoc/OpenSt...