Ruby How to convert string to integer without .to_i
<p>Is there a way to output an integer given a string containing numbers between 0 and 9. For example, input is "219", output would be 219, and you can't use .to_i </p>