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