Skip to content

Instantly share code, notes, and snippets.

@EvilFaeton
Created September 18, 2012 12:17
Show Gist options
  • Save EvilFaeton/3742803 to your computer and use it in GitHub Desktop.
Save EvilFaeton/3742803 to your computer and use it in GitHub Desktop.
Ruby: Flip-Flop
> 10.times do |i|
> if (i == 3)..(i == 6)
> puts i
> end
> end
3
4
5
6
=> 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment