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,