method

including

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: Enumerable
including(*elements) public

Returns a new array that includes the passed elements.

[ 1, 2, 3 ].including(4, 5)
# => [ 1, 2, 3, 4, 5 ]

["David", "Rafael"].including %w[ Aaron Todd ]
# => ["David", "Rafael", "Aaron", "Todd"]
Show source
Register or log in to add new notes.