Michal 'hramrach' Suchanek ha scritto:

>>
>>I, personally, would prefer something more along the lines:
>>
>>button.on_event( :push ) do
>>  puts "Hey, don't push my buttons!"
>>end
> 
> 
> This looks like it is more flexible .. but it requires the user of the
> library to write a dispatcher function. And since ruby is dynamic you do
> not need to force users into writing dispatchers to get flexibility.
> 
> So I like the first one better.

have someone noticed that this is how ruvy-gtk2 works?