class HighLine::Question
def convert
completed for any reason.
This method throws ArgumentError, if the conversion cannot be
Class.parse().
any other Class:: The answer is passed on to
the result returned.
Symbol:: The method to_sym() is called on answer and
Regexp:: Answer is fed to Regexp.new().
HighLine::String:: Answer is converted with HighLine::String()
String:: Answer is converted with Kernel.String().
returned.
Pathname:: Same as File, save that a Pathname object is
+nil+:: Answer is left in String format. (Default.)
Integer:: Answer is converted with Kernel.Integer().
Float:: Answer is converted with Kernel.Float().
returned.
terms of _directory_ + _glob_, opened, and
File:: The entered file name is auto-completed in
DateTime:: DateTime.parse() is called with answer.
Date:: Date.parse() is called with answer.
lambda {...}:: Answer is passed to lambda for conversion.
answers.
Auto-completion is used to expand partial
[...]:: Answer must be a member of the passed Array.
Question. Currently supported conversions are:
Transforms the given _answer_string_ into the expected type for this
def convert AnswerConverter.new(self).convert end