Skip to content

Instantly share code, notes, and snippets.

@arya
Created July 15, 2009 17:51
Show Gist options
  • Save arya/147859 to your computer and use it in GitHub Desktop.
Save arya/147859 to your computer and use it in GitHub Desktop.
# a maybe valid use-case of flip flops
begin
puts "hi"
raise Exception
rescue Exception => e
retry if ((i ||= 1) == 1)..((i += 1) >= 2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment