Last Updated: February 25, 2016
·
648
· uzbekjon

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

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

# good
STATES = %w(draft open closed)