3 ms·
consisting of: 1. spend 30 minutes beating around the bush, reinventing the wheel etc for your own education and interest; then 2. throw that away and use Sim
by inopinatus 1y ago
consisting of:
1. spend 30 minutes beating around the bush, reinventing the wheel etc for your own education and interest; then
2. throw that away and use SimpleDelegator from the standard library
and to be clear, I don’t mean this negatively at all.
- pantulis 1y agoSounds 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