summaryrefslogtreecommitdiff
path: root/lib/highline/question.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highline/question.rb')
-rwxr-xr-xlib/highline/question.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/highline/question.rb b/lib/highline/question.rb
index 98b3fa9..b630ef9 100755
--- a/lib/highline/question.rb
+++ b/lib/highline/question.rb
@@ -60,11 +60,11 @@ class HighLine
@case = nil
@in = nil
@first_answer = nil
- @directory = Pathname.new(File.expand_path(File.dirname($PROGRAM_NAME)))
@glob = "*"
+ @overwrite = false
@user_responses = {}
@internal_responses = default_responses_hash
- @overwrite = false
+ @directory = Pathname.new(File.expand_path(File.dirname($PROGRAM_NAME)))
# allow block to override settings
yield self if block_given?
@@ -548,7 +548,8 @@ class HighLine
# Provides the String to be asked when at an error situation.
# It may be just the question itself (repeat on error).
# @return [self] if :ask_on_error on responses Hash is set to :question
- # @return [String] if :ask_on_error on responses Hash is set to something else
+ # @return [String] if :ask_on_error on responses Hash is set to
+ # something else
def ask_on_error_msg
if final_responses[:ask_on_error] == :question
self