class Stannum::Constraints::Parameters::ExtraArguments

Validates that the arguments passed to a method have no extra items.

@example

constraint = Stannum::Constraints::Parameters::ExtraArguments.new(3)

constraint.matches?([])           #=> true
constraint.matches?([1])          #=> true
constraint.matches?([1, 2, 3])    #=> true
constraint.matches?([1, 2, 3, 4]) #=> false

Constants

NEGATED_TYPE

The :type of the error generated for a matching object.

TYPE

The :type of the error generated for a non-matching object.