Skip to content

Commit

Permalink
Merge pull request #12 from ga-be/ga-be-1464537580
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
AnnJohn committed Jun 2, 2016
2 parents ace8590 + 26af619 commit 347e4ec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,12 @@ String interpolation is basically a super power. And like any good super power,

## Instructions

1. Define a method, `#display_rainbow`, in `lib/display_rainbow.rb`
2. `#display_rainbow` must accept an argument, an array of colors. The tests call `#display_rainbow` with the following evocation: `display_colors(['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'])`.
2. `#display_rainbow` should print out the colors of the rainbow in the
following format: `"R: red, O: orange, Y: yellow, G: green, B: blue, I: indigo, V: violet"` by reading from the array passed in as an argument. (For this lab it is OK to hardcode the uppercase letters though.)
3. It should accept an array containing the colors as an argument
4. Run `learn` locally until you pass
5. Submit the lab
1. Define a method, `#display_rainbow`, in `lib/display_rainbow.rb`.
2. `#display_rainbow` must accept an argument, an array of colors. The tests call `#display_rainbow` with the following invocation: `display_rainbow(['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'])`.
3. `#display_rainbow` should print out the colors of the rainbow in the following format: `"R: red, O: orange, Y: yellow, G: green, B: blue, I: indigo, V: violet"` by reading from the array passed in as an argument. (For this lab it is OK to hardcode the uppercase letters.)
4. It should accept an array containing the colors as an argument.
5. Run `learn` locally until you pass.
6. Submit the lab.

`colors` will be passed in as: `['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']`

Expand Down

0 comments on commit 347e4ec

Please sign in to comment.