class ActiveModel::Validator

def kind

UniquenessValidator.new.kind # => :uniqueness
PresenceValidator.new.kind # => :presence

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