struct

Spectator::Anything

Inherits Struct / Value / Object

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)

Constructors

Instance methods

===(other)

Always returns true.

Source
initialize
Source
inspect(io : IO) : Nil

Displays &quot;<anything>&quot;.

Source
to_s(io : IO) : Nil

Displays &quot;anything&quot;.

Source