summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-06 01:14:08 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-06-06 01:14:08 -0300
commitfbd248da4acf3d281c7672f2456afc7f0033b656 (patch)
treec246fd4c41b56ce48f157b6470f57f4cb672f099
parent7493893624524e0228c4a0de309c6b1428bcec7b (diff)
downloadhighline-fbd248da4acf3d281c7672f2456afc7f0033b656.tar.gz
Use a more natural calling syntax for procs
-rw-r--r--lib/highline/question/answer_converter.rb2
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