ruby array take first 5 items in array code example
Example: ruby select first n elements from array
array = ['toto','titi','tata','tutu']
array.first(2) # => ['toto', 'titi']
array = ['toto','titi','tata','tutu']
array.first(2) # => ['toto', 'titi']