From: Joel VanderWerf Date: 2004-07-10T06:13:42+09:00 Subject: Re: Proc Blocks, passing them around...question. Zach Dennis wrote: > Take the following code (this is conceptual thought, not working code): > > class MyObject > def initialize > @myobj = MyEventHandler.new(); > @myobj.event(){ |evt| > puts( evt.getID() ); } block = ... @myobj.event(&block) > end > end > > m = MyObject.new(); > > > I would like to get rid of the { |evt| ... } block and instead pass in a > proc created by an outside method. I would like to do this to clean up my > code because my proc is of decent size. Any ideas? Thanks,