The Rules Design Pattern Sample code from my blog post about dealing with complex conditional logic with the Rules design pattern. I first came across the Rules Pattern as a module that Steve Smith contributed to Pluralsight’s Design Patterns library.