Skip to content

Instantly share code, notes, and snippets.

@xdougx
Created November 30, 2015 19:50
Show Gist options
  • Save xdougx/768fe3f7162cee0494ec to your computer and use it in GitHub Desktop.
Save xdougx/768fe3f7162cee0494ec to your computer and use it in GitHub Desktop.
def search_city(city = "")
until hashcity.include?(city) do
city = gets.chomp
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment