Animation in ruby?

I tried making a gif for this but never mind.

Try opening the following code from an .rb file and you’ll see.

time = 0.1 #0 IS TOO FAST
print “H”
sleep time
print “e”
sleep time
print “l”
sleep time
print “l”
sleep time
print “o”
sleep time
print “!”
sleep 3

I tried to achieve the same thing with \b but I’m still thinking.
Does anyone know how to do this?

Well this does for me.

x = 0.1 #SLEEP TIMER
y = [“H”,“e”,“l”,“l”,“o”,"!"]

if x == 0.1

y.each do |i|
print i
sleep x
end #END OF EACH DO

end #END OF IF