Monday, March 29, 2021

Strategic 1.0.0

The Strategic gem (Painless Strategy Pattern in Ruby and Rails) has been updated to better match the authentic Gang of Four Strategy Design Pattern, and has been finalized as 1.0.0 as a result. It now allows setting strategies via the `#strategy=` attribute writer method, and then dispatch strategic model method invocations automatically to the configured strategy. It also provides the option of setting a `default_strategy`, getting current `strategy`, and getting strategy `context` (aka strategic model as per the GOF Design Pattern).



Learn more at the project page:

https://github.com/AndyObtiva/strategic

You may also read:

No comments: