Get Last Array Element

Get the last element of an array.

Code

General
arr.last

Parameters

Array

Server

More Ruby Snippets