Closed flash-gordon closed 3 years ago
Here is an overview of what got changed by this pull request:
Coverage increased per file
===========================
+ lib/dry/logic/rule/interface.rb 4
Complexity decreasing per file
==============================
+ lib/dry/logic/rule/interface.rb -1
See the complete overview on Codacy
Ruby 3 changed arity of procs made from symbols (because they are lambdas now). This revealed some logic issues (see what I did here). Thanks to this change I finally read the documentation on #arity and required improvements.
P.S. It seems that nobody uses arity < -1 for predicates