Sha256: aa0ea4bfb567a88309a0da85bfdaef0ea7cee3ae920dd28e16a04f34d2d68433
Contents?: true
Size: 285 Bytes
Versions: 50
Compression:
Stored size: 285 Bytes
Contents
module MCollective module Validator class LengthValidator def self.validate(validator, length) if (validator.size > length) && (length > 0) raise ValidatorError, "Input string is longer than #{length} character(s)" end end end end end
Version data entries
50 entries across 50 versions & 3 rubygems