W
woodyee
Easy one but I can't figure this out! I'm trying to ask someone to
type some stuff, and then at the end (when they press the spacebar
without typing anything), I want to display what they typed.
Here's my code:
something = []
puts "Say something..."
something = gets.chomp
puts something
I'm seeing what I typed after I hit the spacebar. Any ideas? Thanks!!
type some stuff, and then at the end (when they press the spacebar
without typing anything), I want to display what they typed.
Here's my code:
something = []
puts "Say something..."
something = gets.chomp
puts something
I'm seeing what I typed after I hit the spacebar. Any ideas? Thanks!!