From: Peter Lane Date: 2011-12-03T20:39:13+09:00 Subject: Re: Is there a better way to check this array? 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/.