From: Joe Van Dyk Date: 2005-04-30T03:02:41+09:00 Subject: Re: method_missing question On 4/29/05, Rick Olson wrote: > Why not just call @display.zoom(500)? > > On 4/29/05, Joe Van Dyk wrote: > > Currently, I have a class that has a bunch of methods (that a GUI does > > a callback on) that are like > > > > def menu_zoom_100_activate > > @display.zoom(100) > > end > > > > def menu_zoom_250_activate > > @display.zoom(250) > > end > > > > def menu_zoom_500_activate > > @display.zoom(500) > > end > > > > Could I use #method_missing to make this better? > > Because when a GUI button is clicked, I need to call a particular method of a particular class. I don't think I can give it an argument.