struct Spectator::Anything

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.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def ===(other) #

Always returns true.


[View source]
def initialize #

[View source]
def inspect(io) #

Displays "".


[View source]
def to_s(io) #

Displays "anything".


[View source]