From: Rick Olson Date: 2005-04-30T02:58:18+09:00 Subject: Re: method_missing question 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? > > -- rick http://techno-weenie.net