Sha256: f37ea4280a8351965ecfa0be80d1ec0689c9aebbdf594bef2a1f1d64ef1b20b1
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module ArgumentsValidation include Validators def name_validation(name) argument_min_length_check(name, Settings::MIN_PLAYER_NAME_LENGTH) && \ argument_max_length_check(name, Settings::MAX_PLAYER_NAME_LENGTH) end def guess_validation(guess) argument_fixed_length_check(guess, Settings::CODE_LENGTH) && \ digits_check(guess, min_digit: Settings::CODE_MIN_DIGIT, max_digit: Settings::CODE_MAX_DIGIT) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alex_codebreaker-0.1.6 | lib/alex_codebreaker/modules/validators/arguments_validation.rb |
alex_codebreaker-0.1.5 | lib/alex_codebreaker/modules/validators/arguments_validation.rb |