View definition

def Axlsx::RestrictionValidator.validate

Defined in github.com/randym/axlsx/lib/axlsx/util/validators.rb

Description

Perform validation

Parameters:

  • name (String)

    The name of what is being validatied. This is included in the error message

  • choices (Array)

    The list of choices to validate against

  • v (Any)

    The value to be validated

Raises:

  • (ArgumentError)

    Raised if the value provided is not in the list of choices.

validate is referenced in 0 repositories