This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
LICENSE | ||
| |
README.rdoc | Thu Sep 24 23:40:05 -0700 2009 | |
| |
Rakefile | Thu Sep 24 23:40:05 -0700 2009 | |
| |
ext/ | ||
| |
lib/ | ||
| |
pkg/ | Fri Sep 25 00:24:25 -0700 2009 | |
| |
test/ | Thu Sep 24 23:40:05 -0700 2009 |
README.rdoc
# Object2module
- converts a Class (or the Singleton of an Object) to a Module
- Includes gen_extend and gen_include methods: generalizations of Object#extend and Module#include that work with Objects and Classes as well as Modules
How it works:
- First creates an IClass for the Class in question and sets the T_MODULE flag
- Recursively converts superclasses of the Class to IClasses creating a modulified version of the Class’s inheritance chain
- gen_include/gen_extend automatically call #to_module on the Class/Object before inclusion/extension.








