From: Gavin Sinclair Date: 2002-11-13T18:41:50+09:00 Subject: Re: How do module functions work? From: "Yukihiro Matsumoto" > |Why do you have to use Module#module_function in order to be able to call > | > | Foo::bar() > | > |? > | > |And why does it create a copy of the method? I don't understand the mechanics > |at play here. > > Instance methods and class methods (or module method) are totally > different entities, so that you have to copy instance methods to make > them callable as class methods. So how does it get copied? Can it be expressed in Ruby (like attr_accessor), or is it more magical that that. > matz. Gavin