Skip to content

Instantly share code, notes, and snippets.

@pedronsouza
Last active December 15, 2015 10:59
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 pedronsouza/5249660 to your computer and use it in GitHub Desktop.
Save pedronsouza/5249660 to your computer and use it in GitHub Desktop.
New notation for symbols array
# Com Ruby 1.9
BANDS = [:the_strokes, :black_keys, :arctic_monkeys]
# Agora, com Ruby 2.0
BANDS = %i[the_strokes black_keys, arctic_monkeys]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment