summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-02 01:44:48 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-02 01:45:25 -0300
commit1c35f06613c0813110b5887b3ab3f2f67457391c (patch)
treef2286f484e7360494c859f4fbffe1a1fe305d8f8
parente8dd37d9b7fd35f138ba62d1197598d8d207e75b (diff)
downloadhighline-1c35f06613c0813110b5887b3ab3f2f67457391c.tar.gz
Fix else -> elsif
-rw-r--r--lib/highline/question_asker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/question_asker.rb b/lib/highline/question_asker.rb
index b919cb0..84dbd65 100644
--- a/lib/highline/question_asker.rb
+++ b/lib/highline/question_asker.rb
@@ -129,8 +129,8 @@ class HighLine
def answer_matches_regex(answer)
if question.gather.is_a?(::String) || question.gather.is_a?(Symbol)
answer.to_s == question.gather.to_s
- else question.gather.is_a?(Regexp)
- answer.to_s =~ question.gather
+ elsif question.gather.is_a?(Regexp)
+ answer.to_s =~ question.gather
end
end