Last Updated: February 25, 2016
·
650
· uzbekjon

Prefer %w to [] when you need an array of strings

# bad
STATES = ['draft', 'open', 'closed']

# good
STATES = %w(draft open closed)