From 074aff531c05a8a1b12cf9d4218303676b1629bf Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 8 Dec 2019 14:52:28 -0700 Subject: [PATCH] Add "anything" which always returns true when compared against --- src/spectator/anything.cr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/spectator/anything.cr diff --git a/src/spectator/anything.cr b/src/spectator/anything.cr new file mode 100644 index 0000000..511a024 --- /dev/null +++ b/src/spectator/anything.cr @@ -0,0 +1,15 @@ +module Spectator + struct Anything + def ==(other) + true + end + + def ===(other) + true + end + + def =~(other) + true + end + end +end