module ArgumentsValidation include Validators def name_validation(name) argument_instance_check(name, String) argument_length_check(name, max: 20, min: 3) name end def guess_validation(guess) argument_instance_check(guess, Integer) argument_fixed_length_check(guess, 4) digits_check(guess) guess end end