mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add "anything" which always returns true when compared against
This commit is contained in:
parent
07ce835724
commit
074aff531c
1 changed files with 15 additions and 0 deletions
15
src/spectator/anything.cr
Normal file
15
src/spectator/anything.cr
Normal file
|
@ -0,0 +1,15 @@
|
|||
module Spectator
|
||||
struct Anything
|
||||
def ==(other)
|
||||
true
|
||||
end
|
||||
|
||||
def ===(other)
|
||||
true
|
||||
end
|
||||
|
||||
def =~(other)
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue