Method: HighLine::Question#responses
- Defined in:
- lib/highline/question.rb
#responses ⇒ Object
A Hash that stores the various responses used by HighLine to notify the user. The currently used responses and their purpose are as follows:
:ambiguous_completion
-
Used to notify the user of an ambiguous answer the auto-completion system cannot resolve.
:ask_on_error
-
This is the question that will be redisplayed to the user in the event of an error. Can be set to
:question
to repeat the original question. :invalid_type
-
The error message shown when a type conversion fails.
:no_completion
-
Used to notify the user that their selection does not have a valid auto-completion match.
:not_in_range
-
Used to notify the user that a provided answer did not satisfy the range requirement tests.
:not_valid
-
The error message shown when validation checks fail.
232 233 234 |
# File 'lib/highline/question.rb', line 232 def responses @user_responses end |