diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:40:42 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:40:42 -0400 |
commit | 32d32bf7ecfbc84a58d67a920135ef0bddfb9ee0 (patch) | |
tree | 8471d77cb4cb40030295bed0950e6338259eb832 /lib/sisu/v3/response.rb | |
parent | v3: cosmetic code, if, else, remove some semicolons (;) replace with newlines (diff) |
v3: cosmetic code, if true ; x, remove semicolons replace with "then"
Diffstat (limited to 'lib/sisu/v3/response.rb')
-rw-r--r-- | lib/sisu/v3/response.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/response.rb b/lib/sisu/v3/response.rb index 675b249e..d660d398 100644 --- a/lib/sisu/v3/response.rb +++ b/lib/sisu/v3/response.rb @@ -61,9 +61,9 @@ module SiSU_Response response='redo' print ask + " ['yes', 'no' or 'quit']: " response=File.new('/dev/tty').gets.strip - ans=if response=='yes'; true - elsif response=='no'; false - elsif response =~/^quit|exit$/; exit + ans=if response=='yes' then true + elsif response=='no' then false + elsif response =~/^quit|exit$/ then exit else puts "[please type: 'yes', 'no' or 'quit']" response?(ask) end |