class ActiveModel::Validator

def self.kind

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

Returns the kind of the validator.
def self.kind
  @kind ||= name.split("::").last.underscore.chomp("_validator").to_sym unless anonymous?
end