From: Eric Mahurin Date: 2005-10-28T06:06:16+09:00 Subject: Re: ===, include?, =~ --- gwtmp01@mac.com wrote: > I started this post after wondering why > Set doesn't alias :=== to :include? > > That led me to look at ===, include?, and =~ for a variety > of classes... This was the main reason that sent me off making Object#duck to map method names to the way you need: http://rcrchive.net/rcr/show/318 My most common usage now is: set.duck(:===,:include?) It still puzzles me why some people wouldn't want something like this in the ruby core. I use this quite a bit with my grammar project. Several of my basic methods need an argument that responds to ===. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com