Could you please tell, what is the Ruby syntax for while
block in one line?
For example
puts a[i+=1] while i < 10
Simple:
while 1 do puts "hello" end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With