Skip to content

Commit

Permalink
Change nesting style
Browse files Browse the repository at this point in the history
  • Loading branch information
matugm committed Sep 27, 2015
1 parent 482abdc commit df22332
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 13 additions & 11 deletions 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
3 changes: 1 addition & 2 deletions lib/highline/question_asker.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df22332

Please sign in to comment.