[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

new singleton class relationship

Ara.T.Howard

5/18/2005 7:19:00 PM

1 Answer

Christoph R.

5/19/2005 2:43:00 AM

0

Ara.T.Howard schrieb:

> so - how can 'Child < Parent #=> true' when they have no ancestors in
> common?
> note that i think it __should__ be true - but shouldn't there be at
> least one
> common ancestor then? it seems like Parent's singleton class should
> show up
> in Child.singleton_class.ancestors doesn't it?

Ancestors apparently ignores singleton ancestors -
so this seems kind of alright to me.

/Christoph