Playing with Ruby Ractors
Exploring Ractors with Ruby 3.0
Fun with Ruby Pattern Matching
Pattern matching emerged in experimental status in Ruby 2.7, I got my first chance to properly play with an implementation that uses it
A Gem that Provides Rake Tasks
I'm building a Gem and I want it to provide Rake tasks when it is used in other projects
ActiveRecord without Rails
I needed a quick and simple database to use with a plain old ruby project, taking ActiveRecord on it's own is pretty easy
TIL: Asserting Exceptions with Cucumber & Ruby
Proper use of Cucumber follows a strict given-when-then syntax. This posses a small problem when trying to assert an exception in a 'then' step if it is raised in a 'when' step.
TIL: Counting Consecutive Items in a Ruby Array
I wanted to know how many times a thing occurs consecutively in array. Only consecutive items are important
TIL: Ruby Splat Operator Builds Arrays
You can use the splat operator to coerce values into arrays
TIL: Denaturing Ruby Array to get the Last Element and Remainder
Assigning the first element and the remainder of an array to a variable is common, but you can also do the same in reverse
Inline Bundler for Ruby Scripts
You can write a simple Ruby script which includes in-line bundler and so avoids the need to have a separate Gemfile.