JavaScript to ruby Helper

Array
Array