lib/totally_lazy/predicates.rb in totally_lazy-0.1.41 vs lib/totally_lazy/predicates.rb in totally_lazy-0.1.42

- old
+ new

@@ -9,6 +9,10 @@ end def is_right? -> (either) { either.is_right? } end + + def matches?(regex) + ->(value) { !regex.match(value).nil? } + end end \ No newline at end of file