How to convert an array of integers to an integer

Viewed 1566

I have a ruby array that looks like this:

[nil, 3, 4, 2]  

I would like to convert it to an integer, like so:
342

Is this possible, if so, how can I go about doing this?

3 Answers
Related