mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Document truthy flag
This commit is contained in:
parent
95b0563f73
commit
3d4d8f67be
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ module Spectator::Matchers
|
|||
# Truthy is the opposite of falsey.
|
||||
struct TruthyMatcher < ValueMatcher(Bool)
|
||||
# Creates the truthy matcher.
|
||||
# The `truthy` argument should be true to match "truthy" values,
|
||||
# and false to match "falsey" values.
|
||||
def initialize(truthy : Bool)
|
||||
super(truthy ? "truthy" : "falsey", truthy)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue