Created
September 26, 2015 15:23
-
-
Save karapetyan/e63c1e7c7d3cfefd49da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.continue? | |
user_input = "" | |
until user_input == ("y" || "n") do | |
puts "Do you want to continue search? y/n" | |
user_input = gets.chomp.downcase | |
end | |
user_input == "y" ? nil : break | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment