diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-09-22 19:38:14 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-09-22 19:38:21 -0300 |
commit | 642526bf218247dbf0c1c8eb78376e2725fab779 (patch) | |
tree | 365a0209c806f0637bcce88df4f33a4b3419c859 | |
parent | 9978eea175296410975f757c07f9e1b3d51868cf (diff) | |
download | highline-642526bf218247dbf0c1c8eb78376e2725fab779.tar.gz |
Fix #159 - Make HighLine::Question convert the 'question' argument to String first
This makes possible to a calling code to pass both Symbols and Strings
with the same result.
-rwxr-xr-x | lib/highline/question.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/highline/question.rb b/lib/highline/question.rb index fa8445a..7084584 100755 --- a/lib/highline/question.rb +++ b/lib/highline/question.rb @@ -31,7 +31,7 @@ class HighLine # def initialize( question, answer_type ) # initialize instance data - @question = question.dup + @question = String(question).dup @answer_type = answer_type @completion = @answer_type |