Recent Posts

Lambdas/Procs in Case Expressions

1 minute read

Most Rubyists know they can use literals, classes, ranges and regular expressions in the when branches of a case expression:

Using Ruby’s gsub with a block

1 minute read

String#gsub is one of the most used Ruby methods in the wild. Just about every Ruby programmer knows about the method and uses it fairly regularly.