summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-09-22 19:38:14 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-09-22 19:38:21 -0300
commit642526bf218247dbf0c1c8eb78376e2725fab779 (patch)
tree365a0209c806f0637bcce88df4f33a4b3419c859
parent9978eea175296410975f757c07f9e1b3d51868cf (diff)
downloadhighline-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-xlib/highline/question.rb2
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