From df22332c37e18b2523b847af35120e9d2f0d90e8 Mon Sep 17 00:00:00 2001 From: matugm Date: Sun, 27 Sep 2015 04:43:45 +0200 Subject: [PATCH] Change nesting style --- lib/highline/custom_errors.rb | 24 +++++++++++++----------- lib/highline/question_asker.rb | 3 +-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/highline/custom_errors.rb b/lib/highline/custom_errors.rb index 8891aa1a..74e108db 100644 --- a/lib/highline/custom_errors.rb +++ b/lib/highline/custom_errors.rb @@ -1,17 +1,19 @@ -module HighLine::CustomErrors - # Internal HighLine errors. - class QuestionError < StandardError - end +class HighLine + module CustomErrors + # Internal HighLine errors. + class QuestionError < StandardError + end - class NotValidQuestionError < QuestionError - end + class NotValidQuestionError < QuestionError + end - class NotInRangeQuestionError < QuestionError - end + class NotInRangeQuestionError < QuestionError + end - class NoConfirmationQuestionError < QuestionError - end + class NoConfirmationQuestionError < QuestionError + end - class NoAutoCompleteMatch < StandardError + class NoAutoCompleteMatch < StandardError + end end end diff --git a/lib/highline/question_asker.rb b/lib/highline/question_asker.rb index f93731fe..aeb85444 100644 --- a/lib/highline/question_asker.rb +++ b/lib/highline/question_asker.rb @@ -10,7 +10,7 @@ def initialize(question, highline) end # - # Gets one answer, as opposed to #gather + # Gets just one answer, as opposed to #gather_answers # def ask_once # readline() needs to handle its own output, but readline only supports @@ -76,7 +76,6 @@ def ask_once # Collects an Array/Hash full of answers as described in # HighLine::Question.gather(). # - def gather_answers original_question_template = question.template verify_match = question.verify_match