Ruby Array limit method

The Array#take method is probably what you want.

['one','two','three'].take(2)

You have Array#first:

['one','two','three'].first(2)
=> ['one', 'two']

irb(main):001:0> [1,2,3,4,5].slice! 0,4
=> [1, 2, 3, 4]

Just another way to do it.