Declare quickly an array in ruby
array = %w[dad mom brother sister]
This will automatically create an array
["dad", "mom", "brother", "sister"]
Written by jonathan de montalembert
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#