Skip to content

Instantly share code, notes, and snippets.

@uri
Created July 9, 2012 16:45
Show Gist options
  • Save uri/3077534 to your computer and use it in GitHub Desktop.
Save uri/3077534 to your computer and use it in GitHub Desktop.
str=gets
unless str.nil? && str != ""
puts str
else
puts "gets produced nil or didn't ask for input."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment