Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Created November 1, 2014 02:07
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 xander-miller/098d3f35222f6de4c05d to your computer and use it in GitHub Desktop.
Save xander-miller/098d3f35222f6de4c05d to your computer and use it in GitHub Desktop.
def add_two(array)
array.map { |item| "#{item} + 2 = #{ item+2 }" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment