class TTY::Prompt::Question::Checks::CheckConversion
def self.call(question, value)
def self.call(question, value) if question.convert? && !Utils.blank?(value) result = question.convert_result(value) if result == Const::Undefined tokens = { value: value, type: question.convert } [value, question.message_for(:convert?, tokens)] else [result] end else [value] end end