public
Last active

ruby_gets

  • Download Gist
ruby_gets.rb
Ruby
1 2 3 4 5 6 7
print "What is your name? "
$stdout.flush
name = gets
puts 'Hi ' + name + '!!!' + name
 
# => Hi andrea
# !!!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.