Created
August 11, 2010 21:51
-
-
Save jgagner/519840 to your computer and use it in GitHub Desktop.
Revisions
-
jgagner revised this gist
Aug 11, 2010 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ 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!"} -
jgagner created this gist
Aug 11, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ def four_times &block (1..4).zip([:a,:b,:c,:d]).zip(["face1","face2","face3","face4"]).transpose[0].transpose[0].each(&block) end four_times { puts "face!"}