Sha256: 91b4c28959b11de76ed687d72b115a6e396314d4195f66d7ead713c865437e45
Contents?: true
Size: 248 Bytes
Versions: 2
Compression:
Stored size: 248 Bytes
Contents
module Validation class Registration def self.validation(name:) return if (name.is_a? String) && (3..20).cover?(name.size) raise ArgumentError, 'Name - string, required, min length - 3 symbols, max length - 20' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_kosinskiy-0.1.2 | lib/codebreaker/validation/registration.rb |
codebreaker_kosinskiy-0.1.0 | lib/codebreaker/validation/registration.rb |