4 ms·
Ruby 3.2 has `Data.define`, which is an even better way of doing this: https://docs.ruby-lang.org/en/3.2/Data.html https://docs.ruby-lang.org/en/3.2/Data.html
by joshmcmillan 3y ago
Ruby 3.2 has `Data.define`, which is an even better way of doing this: https://docs.ruby-lang.org/en/3.2/Data.html https://docs.ruby-lang.org/en/3.2/Data.html
- psychoslave 3y agoAwesome, thanks for pointing it.
- nerdponx 3y agoNice, it's attrs/dataclass from Python.