Latest
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
TIL: You Can Use Lambdas in Ruby Case Statements
Using lambdas inside Ruby case statements
Jun 30, 2020
TIL: Ruby Knows the Source of Required Code
There's a magic variable which, if initialised, will contain the source of all the files imported afterwards
Jun 29, 2020
TIL: Using File Locking for Exclusivity in Ruby
Two TILs in one, how to use native file locking to prevent more than one process running at the same time
Jun 28, 2020
TIL: Ruby Has a Built-in Persistance Database
Did you know Ruby has a built-in database?
Jun 27, 2020
TIL: Automatic Deep Keys with Ruby Hashes
Generate keys automatically for building deep hashes quickly
Jun 25, 2020
TIL: Matching Multiple Values in a Case Statement
Matching more than one value in a case statement
Jun 23, 2020