class ActiveModel::Validator

def kind

AcceptanceValidator.new(attributes: [:terms]).kind # => :acceptance
PresenceValidator.new(attributes: [:username]).kind # => :presence

Returns the kind for this validator.
def kind
  self.class.kind
end