module AWS::Record::Validations
def validates_format_of *args
(**options)-
:unless(Symbol, String, Proc) -- Specifies a method or -
:if(Symbol, String, Proc) -- Specifies a method or proc -
:on(Symbol) -- When this validation is run. -
:allow_nil(Boolean) -- Skip validation if the -
:message(String) -- A custom error message. The default -
:without(Regexp) -- If the value matches the given -
:with(Regexp) -- If the value matches the given
Parameters:
-
options(Hash) -- -
attributes() -- A list of attribute names to validate.
Overloads:
-
validates_format_of(*attributes, options = {}, &block)
def validates_format_of *args validators << FormatValidator.new(self, *args) end