D
David Vlad
Hello
Im new to ruby and programming and I saw a guy do this on a tutorial
video:
"Hello".each_char do |x|
puts x
end
The result was that it printed one letter in the string at a time until
it had printed the whole word "Hello" in a vertical line. My problem is
that this wont work when I try it and I've done exactly like he did it.
The only thing I can think of is that maybe I have another version of
ruby than he has, but perhaps anyone of you knows the answer?
Im new to ruby and programming and I saw a guy do this on a tutorial
video:
"Hello".each_char do |x|
puts x
end
The result was that it printed one letter in the string at a time until
it had printed the whole word "Hello" in a vertical line. My problem is
that this wont work when I try it and I've done exactly like he did it.
The only thing I can think of is that maybe I have another version of
ruby than he has, but perhaps anyone of you knows the answer?