Add "anything" which always returns true when compared against

This commit is contained in:
Michael Miller 2019-12-08 14:52:28 -07:00
parent 07ce835724
commit 074aff531c

15
src/spectator/anything.cr Normal file
View file

@ -0,0 +1,15 @@
module Spectator
struct Anything
def ==(other)
true
end
def ===(other)
true
end
def =~(other)
true
end
end
end