Ruby Keyword: redo - rking/pry-docmore GitHub Wiki

Jump back to the top of the inner-most block. E.g.:

2.times do |i|
  3.times do |j|
    print i,j
    j += 1
    redo if 1 == j
  end
end
puts

Prints:

0001010210111112

TODO: Pick a better example

⚠️ **GitHub.com Fallback** ⚠️