From: paul@... (Paul J. Sanchez) Date: 2002-11-04T23:40:10+09:00 Subject: Re: Dynamic message dispatch? >>>>> "matz" == Yukihiro Matsumoto writes: matz> Hi, In message "Re: Dynamic message dispatch?" on 02/11/04, matz> Paul J. Sanchez writes: matz> | me> Suppose I have methods foo and bar. How can I read a matz> string | me> from ARGV or input and turn it directly into matz> the message | me> dispatch? matz> | matz> |Sorry, I meant to say "How can I read 'foo' or 'bar' as a matz> string |from...". I'm not asking how to do the input, I matz> can't figure out how |to convert a string into a method matz> invocation on the fly. matz> send? matz> self.send("print", "foo\n") That worked beautifully. Thanks! --paul