||Building Unix Tools with Ruby|
|Subject:||from String to Integer|
On the second page of the article, the author converts the elements of the array named extract_args (or remove_args) from Strings to Integerss. You can do it in a Rubier way with the Array#collect method, like:
And you can do the same with the when '--remove' clause of the switch.
Hear us Roar