From: Philipp Meier Date: 2002-07-04T03:26:05+09:00 Subject: Mixin class methods --UugvWAfsgieZRqgk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all, I have another question regarding Mixins. How can I mix in class methods? I'd like the folling to work: module Foo def Foo.foo # this doesn't work return "foo" end end class Bar include Foo end Bar.foo # -> NameError: undefined method `foo' for Bar:Class Any help is appreciated! -billy. --=20 Meisterbohne S=F6flinger Stra=DFe 100 Tel: +49-731-399 499-0 eL=F6sungen 89077 Ulm Fax: +49-731-399 499-9 --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9I0G2fBriNoqItSYRAnriAJoDm19ppPvgZ1y1ZnCP8OawRoX5uwCff86V rfjD24Crqm0cnG2rZ9ZL+bo= =mNFu -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--