Skip to content

Instantly share code, notes, and snippets.

@daiando
Last active December 1, 2015 00:07
Show Gist options
  • Save daiando/c6e54a3588d83192a131 to your computer and use it in GitHub Desktop.
Save daiando/c6e54a3588d83192a131 to your computer and use it in GitHub Desktop.
Ruby>enumerable>map>sample001
#You have been provided with a custom object called colors that defines it's own each method.
#You need to iterate over the items and return an Array containing the values.
def iterate_colors(colors)
colors.map{|value| value}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment