Skip to content

Instantly share code, notes, and snippets.

@fjfish
Created July 30, 2013 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjfish/6114421 to your computer and use it in GitHub Desktop.
Save fjfish/6114421 to your computer and use it in GitHub Desktop.
get the combinations for a table for laying out in cucumber
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