DEV Community

loading...

Discussion on: Flexible Ruby Value Object Initialisation

Collapse
databasesponge profile image
MetaDave 🇪🇺 Author

Indeed, Ruby does conversions very well, as you show in the first code sample.

I do like case, but again it's a type check. I'd rather avoid them if I can. It's good code that, though.