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