summaryrefslogtreecommitdiff
path: root/lib/highline/import.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/import.rb')
-rw-r--r--lib/highline/import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/import.rb b/lib/highline/import.rb
index c2e6084..46cb3db 100644
--- a/lib/highline/import.rb
+++ b/lib/highline/import.rb
@@ -38,11 +38,11 @@ class Object
# @param details [lambda] block to be called with the question
# instance as argument.
# @return [String] answer
- def or_ask( *args, &details )
+ def or_ask(*args, &details)
ask(*args) do |question|
question.first_answer = String(self)
- details.call(question) if details
+ yield(question) if details
end
end
end