def validates_confirmation_of(*attribute_names)
      options = Macros.extract_options(attribute_names)
      validation_rules.add(Rule::Confirmation, attribute_names, options)
    end
def validates_confirmation_of(*attribute_names)
      options = Macros.extract_options(attribute_names)
      validation_rules.add(Rule::Confirmation, attribute_names, options)
    end
Validates that the given attribute is confirmed by another
 attribute. A common use case scenario is when you require a user to
 confirm their password, for which you use both password and
 password_confirmation attributes.

 @option [Boolean] :allow_nil (true)
   true or false.

 @option [Boolean] :allow_blank (true)
   true or false.

 @option [Symbol] :confirm (firstattr_confirmation)
   The attribute that you want to validate against.

 @example Usage
   require 'virtus'
   require 'aequitas'

   class Page
     include Virtus
     include Aequitas

     attribute :password, String
     attribute :email, String

     attr_accessor :password_confirmation
     attr_accessor :email_repeated

     validates_confirmation_of :password
     validates_confirmation_of :email, :confirm => :email_repeated

     # a call to valid? will return false unless:
     # password == password_confirmation
     # and
     # email == email_repeated
   end