diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-06 02:07:38 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-06 02:07:38 -0300 |
commit | 714643db83097f426346df63230bfb1500e93678 (patch) | |
tree | e5465c8b69f8992de90fae084ff548882303e81f | |
parent | c1c69f85f89cd305456d1f50152dd7cbe285080c (diff) | |
download | highline-714643db83097f426346df63230bfb1500e93678.tar.gz |
Send the name (string) directly. No need to convert to symbol here
-rw-r--r-- | lib/highline/question/answer_converter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/highline/question/answer_converter.rb b/lib/highline/question/answer_converter.rb index cd2666f..0aa81c8 100644 --- a/lib/highline/question/answer_converter.rb +++ b/lib/highline/question/answer_converter.rb @@ -24,7 +24,7 @@ class HighLine if answer_type.respond_to? :parse answer_type.parse(answer) elsif answer_type.is_a? Class - send(answer_type.name.to_sym) + send(answer_type.name) elsif answer_type.is_a?(Array) self.answer = choices_complete(answer) answer.last |