Created
July 30, 2013 16:16
-
-
Save fjfish/6114421 to your computer and use it in GitHub Desktop.
get the combinations for a table for laying out in cucumber
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 characters
strings = ["Not Set", "Participant", "Manager"] | |
strings.product(strings).each do |pair| | |
puts sprintf("|1 |%-12s |%-12s |", *pair) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment