diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-04 00:15:08 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-04 00:15:08 -0300 |
commit | 7677e33c0377cc8d964679f544ac4f1f81c00112 (patch) | |
tree | 9add24ab2d1c8b32328275734715f9dd43762955 | |
parent | 65843e749da3c5100f28b354ef465cf7d838553c (diff) | |
download | highline-7677e33c0377cc8d964679f544ac4f1f81c00112.tar.gz |
Add String convertion/coercion to HighLine::Question#format_answer
-rwxr-xr-x | lib/highline/question.rb | 1 |
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 |