summaryrefslogtreecommitdiff
path: root/lib/highline/question.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/question.rb')
-rw-r--r--lib/highline/question.rb3
1 files changed, 3 insertions, 0 deletions
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.