Hi -- On Sun, 14 Jul 2002, John wrote: > > In any case, what did you need this for? > > I assume you mean having the class respond to methods that match a regexp? > > So you can have a user input commands without having to type the whole > command. Also for having aliases for commands without having to write each > method to call the main method. > > class foo > def /[ls|dir|directory]/ > end > def /desc.*/ > end > end For aliasing, you can use, ummmm, alias :-) class Foo def ls; end alias :dir :ls alias :directory :ls end David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav