Hi guys, I have just one stupid question. I didn’t find in the documentation ( maybe I missed something?).
How can I check if a string is a number or just a text ?
Hi guys, I have just one stupid question. I didn’t find in the documentation ( maybe I missed something?).
How can I check if a string is a number or just a text ?
String#to_i?
returns Int32
if it can parse the value as an integer, or nil otherwise.