4 ms·
For RBS I don't yet have a case, but thank you for reminding me about single line definitions, case...in, and destructing arrays and hashes. I should play a bi
by gls2ro 5y ago
For RBS I don't yet have a case, but thank you for reminding me about single line definitions, case...in, and destructing arrays and hashes.
I should play a bit with them and see if they provide any help to write more readable code.
- kayodelycaon 5y agoI usually do def red; “red”; end The new syntax is a bit cleaner def red = “red” But it looks too much like def color name = “red” name end