def is_a_number?(s)
s.to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) == nil? false : true
end
s.to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/) == nil? false : true
end
Achieving Developer Excellence with Automated Testing
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?