From d58af89b5b82d44ddb1769acfaa92c2dc3758a26 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sun, 1 Jan 2023 22:03:50 -0300 Subject: Update Question#validate inline documentation --- lib/highline/question.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/highline/question.rb b/lib/highline/question.rb index 27d8491..8fcd68d 100644 --- a/lib/highline/question.rb +++ b/lib/highline/question.rb @@ -145,6 +145,9 @@ class HighLine # If set to a Regexp, the answer must match (before type conversion). # Can also be set to a Proc which will be called with the provided # answer to validate with a +true+ or +false+ return. + # It's possible to use a custom validator class. It must respond to + # `#valid?`. The result of `#inspect` will be used in error messages. + # See README.md for details. # attr_accessor :validate # Used to control range checks for answer. -- cgit v1.2.1