kind()
public
Returns the kind of the
validator.
PresenceValidator.kind
UniquenessValidator.kind
# File activemodel/lib/active_model/validator.rb, line 102
def self.kind
@kind ||= name.split('::').last.underscore.sub(/_validator$/, '').to_sym unless anonymous?
end