summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-04 00:15:08 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-04 00:15:08 -0300
commit7677e33c0377cc8d964679f544ac4f1f81c00112 (patch)
tree9add24ab2d1c8b32328275734715f9dd43762955
parent65843e749da3c5100f28b354ef465cf7d838553c (diff)
downloadhighline-7677e33c0377cc8d964679f544ac4f1f81c00112.tar.gz
Add String convertion/coercion to HighLine::Question#format_answer
-rwxr-xr-xlib/highline/question.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/highline/question.rb b/lib/highline/question.rb
index b92335b..d48fcd2 100755
--- a/lib/highline/question.rb
+++ b/lib/highline/question.rb
@@ -425,6 +425,7 @@ class HighLine
end
def format_answer(answer_string)
+ answer_string = String(answer_string)
answer_string = remove_whitespace(answer_string)
change_case(answer_string)
end