lib/totally_lazy/predicates.rb in totally_lazy-0.1.44 vs lib/totally_lazy/predicates.rb in totally_lazy-0.1.45
- old
+ new
@@ -2,23 +2,22 @@
private
def _not(pred)
-> (bool) { !pred.(bool) }
end
- def is_left?
+ def is_left
-> (either) { either.is_left? }
end
- def is_right?
+ def is_right
-> (either) { either.is_right? }
end
- def matches?(regex)
+ def matches(regex)
->(value) { !regex.match(value).nil? }
end
def equal_to?(that)
->(this) { this == that }
end
- alias is? equal_to?
-
+ alias is equal_to?
end
\ No newline at end of file