Billy Ruffian

Billy Ruffian

Adventures in Ruby Lang

Photo by jesse jackson on Unsplash

Latest

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

Oct 28, 2020

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.

Aug 18, 2020

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.

Jul 17, 2020

Mini Ruby DSL Template

Spawning quick DSLs for fun and profit is super easy with Ruby. This toy is a template for stealing for something useful.

Jul 15, 2020

TIL: Ruby Currying

If currying is a way to partially execute a function, here's how Ruby handles it

Jul 12, 2020