and it seems to work, but doesn’t seem to be documented
can somebody acknowledge this?
Best regards,
Tomek W
It is documented, although it may be a bit hard to find, since the
behaviour is not defined in the Class class as one might expect, but in
it’s superclass, Module. See the Module#<, Module#>, Module#<= and
Module#>= methods on RDoc Documentation . I’m
not sure what about Module#<=> since the docs say it works on mixins,
but it appears to work on classes as well.
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
It is documented, although it may be a bit hard to find, since the
behaviour is not defined in the Class class as one might expect, but in
it’s superclass, Module.
What’s more ‘<’ operator itself is defined in Object class not in
Module.
Module.methods - Object.methods
=> [“nesting”]
So all in all one expects ‘<’ method to be defined for Class, but it’s
defined for Object and documented for Module. Pretty messy