Wayne Brissette wrote in post #1034881:
> As I see it now I can't do a simple include?
> ruby-1.9.2-p290 :021 > names.include?('fred')
>  => false

How about 'any?', where you can use your own comparison block:

> names.any? {|i| i.include?("fred")}
=> true
> names.any? {|i| i.include?("frd")}
=> false

-- 
Posted via http://www.ruby-forum.com/.