3 ms·
Sounds similar to begin building your own class and end up using an OpenStruct.
by pantulis 1y ago
Sounds similar to begin building your own class and end up using an OpenStruct.
- byroot 1y agoAs a rule of thumb you never want to use OpenStruct. It's basically soft deprecated at this point because of its atrocious performance.
- Mystery-Machine 1y agoJust use the new Data class: https://docs.ruby-lang.org/en/3.2/Data.html https://docs.ruby-lang.org/en/3.2/Data.html