From: Mark Hubbart Date: 2005-11-10T04:14:14+09:00 Subject: Re: method_missing On 11/9/05, Dirk Meijer wrote: > hi everyone, > i've got a small problem and can't figure out how to solve it. > in my program, you can enter commands, and then it checks if those commands > exist within a module.. > if the command does not exist, it should tell the user that, this gets me to > this: > def method_missing(method,*trash) > print "Command #{method} not found!\n" > end > but when the user enters a command with an argument (only one argument is > read), it prints the following: > Command not found! > Command not found! > which doesn't look very nice.. how would i solve this? It might help if you post some more of the code, especially that related to taking the user's input and calling the methods. My guess is that it lies in that area; it looks like maybe you are accidentally "send"ing the argument as a method call. cheers, Mark > greetings, Dirk. > >