Strategy Pattern in Ruby
Strategy pattern is a behavioral pattern which is used when there is a need to choose an algorithm on runtime. It’s a very good example of open/closed principle.
What is Open/Closed Principle
Software entities (classes, modules, functions, etc.) sho...
codingwithaglassofmilk.hashnode.dev3 min read