Difference Module#extend_object and Module#extended

Hi,

I just introduced one callback says

http://www.ruby-doc.org/core-2.0/Module.html#method-i-extend_object.

extend_object(obj) → obj

But I am familiar with Module#extended hook. But not understood while
Module#extended we have,then why Module#extend_object?

Is there any difference between them?

Thanks

On Sun, May 12, 2013 at 9:05 AM, Love U Ruby [email protected]
wrote:

Is there any difference between them?

They have complete different uses. #extended is a hook run after
you extend an Object using #extend_object.

tamouse mailing lists wrote in post #1108691:

On Sun, May 12, 2013 at 9:05 AM, Love U Ruby [email protected]
wrote:

Is there any difference between them?

They have complete different uses. #extended is a hook run after
you extend an Object using #extend_object.

No both of them are hooks,as docs mentioned. Thus I wanted to know while
extended hook we have what are the special needs of the hook
extend_object?

Thanks

what if you want to add a feature that exending an specific module does
only work for some special objects?

you can raise an error in #extended but in this its allready to late so
you need #extend_object