diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-06 01:14:08 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-06 01:14:08 -0300 |
commit | fbd248da4acf3d281c7672f2456afc7f0033b656 (patch) | |
tree | c246fd4c41b56ce48f157b6470f57f4cb672f099 | |
parent | 7493893624524e0228c4a0de309c6b1428bcec7b (diff) | |
download | highline-fbd248da4acf3d281c7672f2456afc7f0033b656.tar.gz |
Use a more natural calling syntax for procs
-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 5e1d9b7..3121246 100644 --- a/lib/highline/question/answer_converter.rb +++ b/lib/highline/question/answer_converter.rb @@ -41,7 +41,7 @@ class HighLine elsif answer_type.respond_to? :parse answer_type.parse(answer) elsif answer_type.is_a?(Proc) - answer_type[answer] + answer_type.call(answer) end check_range |