On Oct 19, 2007, at 5:09 PM, Roger Pack wrote: > Roger Pack wrote: >> > Like I wish I could define "is_within?' for arrays, like > if element_x is_within? array_y > # do stuff > end > That can't be done now?!? arr = ['a', 'b'] if arr.include? 'a' puts "array arr includes the letter 'a'" end should be easy to do it the other way as well.