Skip to content

Instantly share code, notes, and snippets.

@julioterra
Created October 5, 2011 18:02
Show Gist options
  • Select an option

  • Save julioterra/1265179 to your computer and use it in GitHub Desktop.

Select an option

Save julioterra/1265179 to your computer and use it in GitHub Desktop.
enumerable map method
array = ["sparkfun", "adafruit", "digikey", "seed studio", "mouser", "jameco"]
p array.map {|cur| cur.upcase.reverse}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment