From: Brian Candler Date: 2010-09-17T19:37:18+09:00 Subject: Re: method_missing Diego Viola wrote: > I've been using Ruby for 2 years or more now, and I am still learning > this awesome language. But I can't grasp my head about method_missing > and how it works, can someone please help me understand about how > method_missing works? class Foo def bar(*args) puts "You called bar with #{args.inspect}" end def method_missing(*args) puts "method_missing with #{args.inspect}" end end f = Foo.new f.bar(1,2,3) f.wibble(4,5,6) -- Posted via http://www.ruby-forum.com/.