TIL: Ruby's Loop Automatically Breaks at the End of Iteration
Autobreaking loops with iterators
Jul 03, 2020
Autobreaking loops with iterators
I often want to get the string from a regex match. If I'm only bothered about getting the first match, this shorthand works
Using lambdas inside Ruby case statements
There's a magic variable which, if initialised, will contain the source of all the files imported afterwards
Two TILs in one, how to use native file locking to prevent more than one process running at the same time
Did you know Ruby has a built-in database?
Generate keys automatically for building deep hashes quickly