struct Spectator::Anything
- Spectator::Anything
- Struct
- Value
- Object
Overview
Type dedicated to matching everything. This is intended to be used as a value to compare against when the value doesn't matter. Can be used like so:
anything = Spectator::Anything.new
expect("foo").to match(anything)
Defined in:
spectator/anything.crConstructors
Instance Method Summary
-
#===(other)
Always returns true.
- #initialize
-
#inspect(io)
Displays "
". -
#to_s(io)
Displays "anything".