Take the following code (this is conceptual thought, not working code):

class MyObject
  def initialize
	@myobj = MyEventHandler.new();
	@myobj.event(){ |evt|
	  puts( evt.getID() ); }
  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,

Zach
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 7/5/2004