Skip to content

Instantly share code, notes, and snippets.

@fermuch
Created March 10, 2013 03:48
Show Gist options
  • Save fermuch/5127028 to your computer and use it in GitHub Desktop.
Save fermuch/5127028 to your computer and use it in GitHub Desktop.
stop loop in ruby
5.times do |i|
puts i
break if i == 3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment