Ruby Keyword: next - rking/pry-docmore GitHub Wiki
Skip to the next iteration of the inner-most loop.
For example:
10.times do |i|
next unless 0 == i % 3
print i
end
puts
Prints:
0369
Compare with: break, last
Skip to the next iteration of the inner-most loop.
For example:
10.times do |i|
next unless 0 == i % 3
print i
end
puts
Prints:
0369
Compare with: break, last