Skip to content

Instantly share code, notes, and snippets.

@zhando
zhando / gist:3127254
Created July 17, 2012 04:53
Ruby epiphany
# update: wow, Proc.new's aren't needed for passed blocks - they're procs already!
# One day I caught myself writing this:
toggle_method
some_method
toggle_method
# and then I needed to conditionally run the toggle method so I did this: