Hadmut Danisch wrote:
...
>>There's my implementation of that idea at:
>>
>>http://raa.ruby-lang.org/project/observable/
>>
>>
>>
>>> If I do understand ruby correctly, then this would mean to
>>> add new functions like oattr_writer to the Module class.
>>
>>
>>My version defines an Observable module that you can extend your class with.
> 
> 
> 
> Thanks, that's what I was looking for. Will it make its way into the
> ruby main distribution?

Might be nice, if there are enough users, but the module would have to
be renamed to something like ObservableAttrs first, to avoid conflict
with the standard lib's Observable defined in observer.rb.