#I have the following I need set up as an class_eval Method.
# @gui_button #<--- holds a gui element I need to register an
#<--- event click on
def my_event_handler
end
#normal registration
@gui_button.click do my_event_handler end
#I would like to do an class_eval to make an instance method
#to do the same this given the following variables
event_method = :my_event_handler
event = :click
element = button_object
#here is what I have so far which does not work.
self.class.class_eval do
element.send( event ) do event_method end
end