Last Updated: February 25, 2016
·
739
· roine

Declare quickly an array in ruby

array = %w[dad mom brother sister]

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