Ruby Array limit method April 18, 2023 by Tarik The Array#take method is probably what you want. ['one','two','three'].take(2)