From: matz@... (Yukihiro Matsumoto) Date: 2001-05-11T16:17:24+09:00 Subject: [ruby-talk:14981] Re: Includes in classes 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.