From: ts Date: 2001-12-02T18:41:56+09:00 Subject: [ruby-talk:27262] Re: Problem with using method_missing to forward messages >>>>> "P" == Phil Tomson writes: P> def method_missing(methID, *args) P> @drbObj.send(methID, *args) P> #was: @drbObj.send(methID,args) P> end Don't forget the block, it can be usefull sometimes pigeon% cat b.rb #!/usr/bin/ruby class A def initialize @a = *1 .. 2 end def method_missing(id, *args, &block) @a.send(id, *args, &block) end end A.new.each {|i| p i} pigeon% pigeon% b.rb 1 2 pigeon% Guy Decoux