This may be a little stupid but I just found that ruby’s Enumerable#first takes an argument.
Get the first 5 elements
That’s a little handiness that I should have known about long ago. If you also didn’t know, now you do.
For more, read about ruby Enumerable.