I need something like this

	def on_success(&block)
		@event['success'] = block
	end

I want the above method to be defined dynamically 

	def define_my_method(symbol)
	....
	...
	....
	....
	end

	any call to define_my_method(:success) should result in 

	def on_success(&block)
		@event['success'] = block
	end

	and will be used as

	myobject.on_success(){
		p "Success"
	}
I tried using define_method but am having problems in passing a block.

regards,
rolo