Description

class Axlsx::RangeValidator

Validate that the value provided is between a specific range Note that no data conversions will be done for you! Comparisons will be made using < and > or <= and <= when the inclusive parameter is true

Parameters:

  • name (String)

    The name of what is being validated

  • min (Any)

    The minimum allowed value

  • max (Any)

    The maximum allowed value

  • value (Any)

    The value to be validated

  • inclusive (Boolean) (defaults to: true)

    Flag indicating if the comparison should be inclusive.

Raises:

  • (ArgumentError)

RangeValidator is referenced in 0 repositories