diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-02 01:44:48 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-02 01:45:25 -0300 |
commit | 1c35f06613c0813110b5887b3ab3f2f67457391c (patch) | |
tree | f2286f484e7360494c859f4fbffe1a1fe305d8f8 /lib | |
parent | e8dd37d9b7fd35f138ba62d1197598d8d207e75b (diff) | |
download | highline-1c35f06613c0813110b5887b3ab3f2f67457391c.tar.gz |
Fix else -> elsif
Diffstat (limited to 'lib')
-rw-r--r-- | lib/highline/question_asker.rb | 4 |
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 |