djin 0.1.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- module Djin
2
- module CustomPredicates
3
- refine Dry::Logic::Predicates::Methods do
4
- def is_one_of?(value, *options)
5
- options.map do |option|
6
- return option.call(value) if respond_to?(:call)
7
-
8
- value.is_a?(option)
9
- end.any?
10
- end
11
- end
12
-
13
- refine Dry::Logic::Predicates do
14
- extend Dry::Logic::Predicates::Methods
15
- end
16
- end
17
- end
18
-