lib/totally_lazy/predicates.rb in totally_lazy-0.1.43 vs lib/totally_lazy/predicates.rb in totally_lazy-0.1.44
- old
+ new
@@ -13,6 +13,12 @@
end
def matches?(regex)
->(value) { !regex.match(value).nil? }
end
+
+ def equal_to?(that)
+ ->(this) { this == that }
+ end
+ alias is? equal_to?
+
end
\ No newline at end of file