README.md in rails-patterns-0.10.0 vs README.md in rails-patterns-0.11.0
- old
+ new
@@ -367,9 +367,10 @@
* Rule has to implement at least `#satisfied?` method. `#not_applicable?` and `#forceable?` are meant to be overridable.
* `#forceable?` makes sense in scenario where condition is capable of being force-satisfied regardless if its actually satisfied or not. Is `true` by default.
* Override `#not_applicable?` when method is applicable only under some specific conditions. Is `false` by default.
* Rule requires a subject as first argument.
* Multiple rules and rulesets can be combined into new ruleset as both share same interface and can be used interchangeably (composite pattern).
+* By default empty ruleset is satisfied.
#### Forcing rules
On some occasions there is a situation in which some condition should be overridable.
Let's say we may want send shipping notification even though given order was not paid for and under regular circumstances such notification should not be sent.