Say I wanted to see if an array contained a number or not. Would I use
the match method?
E.g.
x=["a","b",2, "c"]
puts("This array contains numbers") if x.match(/\d/)
I'm a real beginner at ruby, so simple explanations for simple folk
please. I appreciate your help.
--
Posted via http://www.ruby-forum.com/.