AnWord

final class AnWord

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(symbol: Symbol): ResultOfAnWordToSymbolApplication

This method enables the following syntax:

This method enables the following syntax:

badBook should not be an ('excellentRead)
                        ^
def apply[T](beTrueMatcher: BePropertyMatcher[T]): ResultOfAnWordToBePropertyMatcherApplication[T]

This method enables the following syntax, where, for example, badBook is of type Book and excellentRead is a BePropertyMatcher[Book]:

This method enables the following syntax, where, for example, badBook is of type Book and excellentRead is a BePropertyMatcher[Book]:

badBook should not be an (excellentRead)
                        ^
def apply[T](anMatcher: AnMatcher[T]): ResultOfAnWordToAnMatcherApplication[T]

This method enables the following syntax, where, positiveNumber is an AnMatcher[Book]:

This method enables the following syntax, where, positiveNumber is an AnMatcher[Book]:

result should not be an (positiveNumber)
                       ^
override def toString: String

Overrides to return pretty toString.

Overrides to return pretty toString.

Returns:

"an"

Definition Classes
Any