mobility array to ruby