Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created April 24, 2013 13:30
Show Gist options
  • Select an option

  • Save blasterpal/5452132 to your computer and use it in GitHub Desktop.

Select an option

Save blasterpal/5452132 to your computer and use it in GitHub Desktop.
prompt for input ruby
def prompt(*args)
print(*args)
STDIN.gets.strip
end
# inspired from somewhere on stackoverflow. if that's all you need, then no need for a whole library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment