Closed fran-worley closed 8 years ago
If includes is called on an input that supports the method then call it, otherwise return false.
If we encounter a type error (e.g. String.include?(Integer) ) then also return false.
Due to the enhanced complexity of the predicate lets make excludes? simply be its opposite.
Fixes https://github.com/dry-rb/dry-logic/issues/10
@fran-worley 👍
If includes is called on an input that supports the method then call it, otherwise return false.
If we encounter a type error (e.g. String.include?(Integer) ) then also return false.
Due to the enhanced complexity of the predicate lets make excludes? simply be its opposite.
Fixes https://github.com/dry-rb/dry-logic/issues/10