TIL: How to Quickly Get Regex Matches in Ruby
I often want to get the string from a regex match. If I'm only bothered about getting the first match, this shorthand works
Jul 01, 2020
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
Matching more than one value in a case statement