Posts

All of my blog posts collected in chronological order.

Writing a Custom Cop for RuboCop

A quick example of a custom cop for RuboCop I wrote recently to enforce usage of a specific intializer for the Ruby Money gem.

Query Objects in Rails

A great pattern to prevent ActiveRecord code duplication and clean up cluttered models.

Parsing XML with CSS Paths

I recently learned that you can use CSS paths to parse XML with the Nokogiri Ruby gem, which made my work parsing XML responses from the Amazon Pay API much easier.