From: mrp@... Date: 2002-03-13T23:19:58+09:00 Subject: how do i: add_observer( { small bit of code } ) observing an object, i want to run a small bit of code when update is called. i currently have a small class Wrapper, and set things up like: x.add_observer( Wrapper.new() { my code }) where the block parameter is stored in the class instance, and called in Wrapper.update(). is this the rubyest way of doing this? thanks, martin.