matcher.Matcher

Base class for matcher objects. These allow you to store arguments that have been pass into a gunction call.

Constructor

matcher.Matcher()

Properties

readonly Array matchingArgs

Array of recorded arguments that matches

Methods

registerInvocation(Object arg) => Boolean

Checks if the given argument matches the matcher. If so, records the invocation.

[arg]

Object

The argument to be checked.

Object [arg]

The argument to be checked.

return Boolean

True iff the given argument is a match.