From: kjana@...4lab.to (YANAGAWA Kazuhisa) Date: 2001-12-02T12:48:22+09:00 Subject: [ruby-talk:27249] Re: Problem with using method_missing to forward messages In message ptkwt@shell1.aracnet.com writes: > def method_missing(methID, *args) > @drbObj.send(methID, args) ^change this to `*args' > Ah, but here's the rub: *args means that args is an array. And `*args' for a method call expands the Array to the list of arguments. def meth(a1, a2, a3) puts a1 puts a2 puts a3 end arr = [1, 2, 3] meth(*arr) -- kjana@dm4lab.to December 2, 2001 It is comparison that makes men happy or miserable.