Skip to content

Instantly share code, notes, and snippets.

@binaryphile
Last active December 16, 2015 06:09
Show Gist options
  • Save binaryphile/5389106 to your computer and use it in GitHub Desktop.
Save binaryphile/5389106 to your computer and use it in GitHub Desktop.
template = "Element #{item} in the array."
array = ['a', 'b', 'c']
text = array.map {|item| template}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment