Last Updated: February 25, 2016
·
714
· roine

Declare quickly an array in ruby

array = %w[dad mom brother sister]

This will automatically create an array
["dad", "mom", "brother", "sister"]