Class: MacAddressValidator

Inherits:
BaseValidator
  • Object
show all
Defined in:
lib/lite/validators/mac_address_validator.rb

Constant Summary collapse

REGEXP =
[
  /^(\h{2}[-|.:\s]){5}\h{2}?$/i,
  /^(\h{4}[-|.:\s]){2}\h{4}?$/i,
  /^(\h{6}[-|.:\s])\h{6}?$/i,
  /^\h{12}?$/i
].freeze

Method Summary

Methods inherited from BaseValidator

#validate_each