Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Last active December 28, 2015 21:19
Show Gist options
  • Save ashleygwilliams/7563837 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/7563837 to your computer and use it in GitHub Desktop.
TODO7
# Create a test for a method`make_list` that takes an array and returns that same array but
# as an array of strings in a numbered list.
# Run this test by typing `rspec list_maker_spec.rb` in your terminal.
# Then, create a method on array called `make_list` that iterates over the array it is
# called with and appends a number, a period, and a space to each element.
# e.g make_list(["ich", "ni", "san"]) #=> ["1. ich", "2. ni", "3. san"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment