Hi,

In message "[ruby-talk:14978] Includes in classes"

|So, I changed version to a class method, ERb.version, and commented out the module_function line.  After this, everything worked fine.  Are you supposed to be able to use module_function from a Class definition? (I noticed module_function worked fine within a Module definition.)  Assuming it is legal, why did it fail in my environment?

It's not legal.  Class#module_function is intentionally undefined,
since it makes cause serious intereter crash possible.

							matz.