--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates whether the value of the specified attribute is of the correct form by matching it against the regular expression provided.
- !ruby/struct:SM::Flow::VERB 
  body: "  class Person\n    include Validatable\n    validates_format_of :first_name, :with =&gt; /[ A-Za-z]/\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: A regular expression must be provided or else an exception will be raised.
- !ruby/struct:SM::Flow::P 
  body: "Configuration options:"
- !ruby/struct:SM::Flow::VERB 
  body: "    * after_validate - A block that executes following the run of a validation\n    * message - The message to add to the errors collection when the validation fails\n    * times - The number of times the validation applies\n    * level - The level at which the validation should occur\n    * if - A block that when executed must return true of the validation will not occur\n    * with - The regular expression used to validate the format\n    * group - The group that this validation belongs to.  A validation can belong to multiple groups\n"
full_name: Validatable::Macros#validates_format_of
is_singleton: false
name: validates_format_of
params: " validates_format_of(*args)\n"
visibility: public
