Skip to content

Instantly share code, notes, and snippets.

@jgagner
Created August 11, 2010 21:51
Show Gist options
  • Save jgagner/519840 to your computer and use it in GitHub Desktop.
Save jgagner/519840 to your computer and use it in GitHub Desktop.
def do_something &block
(1..4).zip([:a,:b,:c,:d]).zip((["face"] * 4).map {|x| x.to_sym}).transpose[0].transpose[0].each(&block)
end
do_something { puts "face!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment